kasan: fix coccinelle warnings in kasan_p*_table
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 5 Mar 2019 23:41:31 +0000 (15:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:13 +0000 (21:07 -0800)
commit5c0198b6fb73867dea296a69a944a4fdbceff3d8
tree8d0250e1a717b3d4c2c10df1291daeb8d0f05aa2
parentbcf6f55a0d05eedd8ebb6ecc60ae3f93205ad833
kasan: fix coccinelle warnings in kasan_p*_table

kasan_p4d_table(), kasan_pmd_table() and kasan_pud_table() are declared
as returning bool, but return 0 instead of false, which produces a
coccinelle warning.  Fix it.

Link: http://lkml.kernel.org/r/1fa6fadf644859e8a6a8ecce258444b49be8c7ee.1551716733.git.andreyknvl@google.com
Fixes: 0207df4fa1a8 ("kernel/memremap, kasan: make ZONE_DEVICE with work with KASAN")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reported-by: kbuild test robot <lkp@intel.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kasan/init.c