staging/lustre/o2iblnd: fix is_vmalloc_addr build warning
I got this building Lustre: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c: In function ‘kiblnd_kvaddr_to_page’: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c:532:2: warning: passing argument 1 of ‘is_vmalloc_addr’ makes pointer from integer without a cast [enabled by default] Cc: Laura Abbott <lauraa@codeaurora.org> Cc: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
69342b7884
commit
e92c08092a
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ kiblnd_kvaddr_to_page (unsigned long vaddr)
|
||||||
{
|
{
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
||||||
if (is_vmalloc_addr(vaddr)) {
|
if (is_vmalloc_addr((void *)vaddr)) {
|
||||||
page = vmalloc_to_page ((void *)vaddr);
|
page = vmalloc_to_page ((void *)vaddr);
|
||||||
LASSERT (page != NULL);
|
LASSERT (page != NULL);
|
||||||
return page;
|
return page;
|
||||||
|
|
Loading…
Add table
Reference in a new issue