]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()
authorJoshua Clayton <stillcompiling@gmail.com>
Thu, 14 Jan 2016 23:22:10 +0000 (15:22 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit39d7adb29ed4e09a000d5e4a8bfc81fdf06234d6
tree07fa19486636a026e8ab33549671018027dcdff3
parent3dc3d6f5143a5ab6f7c24727e4e5c5f185d31dee
mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

Running sparse on drivers/staging/lustre results in dozens of warnings:
include/linux/gfp.h:281:41: warning: odd constant _Bool cast (400000
becomes 1)

Use "!!" to explicitly convert to bool and get rid of the warning.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h