]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre: fix compile warning with is_vmalloc_addr
authorOleg Drokin <green@linuxhacker.ru>
Fri, 24 Jan 2014 04:45:04 +0000 (23:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 17:05:00 +0000 (09:05 -0800)
commita590ab32b3b4dfae5d6f6ae9b3677882d8c99777
tree45cee5e35b72a706e2196a2f0a280403af2939c3
parent06fe83b532f8e999bdaf904bbbcf53152158fa9f
staging/lustre: fix compile warning with is_vmalloc_addr

Recent commit c22b292a7c0f4897ccce6acfa838cff059c4a3d3
introduced this compile warning (because vaddr is unsigned long),
so add a cast:
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]
  if (is_vmalloc_addr(vaddr)) {
  ^
In file included from drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h:43:0,
                 from drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c:41:
include/linux/mm.h:336:59: note: expected ‘const void *’ but argument is of type ‘long unsigned int’
 static inline int is_vmalloc_addr(const void *x)

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
CC: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c