projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf6f55
)
kasan: fix coccinelle warnings in kasan_p*_table
author
Andrey Konovalov
<
[email protected]
>
Tue, 5 Mar 2019 23:41:31 +0000
(15:41 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 6 Mar 2019 05:07:13 +0000
(21:07 -0800)
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 <
[email protected]
>
Reported-by: kbuild test robot <
[email protected]
>
Acked-by: Andrey Ryabinin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/kasan/init.c
patch
|
blob
|
history
diff --git
a/mm/kasan/init.c
b/mm/kasan/init.c
index 45a1b5e38e1e2415ad39113a6504ead9fa949dbc..fcaa1ca031754018260ff53ab87c67e9fdd944c2 100644
(file)
--- a/
mm/kasan/init.c
+++ b/
mm/kasan/init.c
@@
-42,7
+42,7
@@
static inline bool kasan_p4d_table(pgd_t pgd)
#else
static inline bool kasan_p4d_table(pgd_t pgd)
{
- return
0
;
+ return
false
;
}
#endif
#if CONFIG_PGTABLE_LEVELS > 3
@@
-54,7
+54,7
@@
static inline bool kasan_pud_table(p4d_t p4d)
#else
static inline bool kasan_pud_table(p4d_t p4d)
{
- return
0
;
+ return
false
;
}
#endif
#if CONFIG_PGTABLE_LEVELS > 2
@@
-66,7
+66,7
@@
static inline bool kasan_pmd_table(pud_t pud)
#else
static inline bool kasan_pmd_table(pud_t pud)
{
- return
0
;
+ return
false
;
}
#endif
pte_t kasan_early_shadow_pte[PTRS_PER_PTE] __page_aligned_bss;