From: Changcheng Deng Date: Fri, 14 Jan 2022 22:07:21 +0000 (-0800) Subject: mm: fix boolreturn.cocci warning X-Git-Tag: v6.6.17~8400^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1611f74a94ba2e0f2d25b75008ed8e76e122097a;p=platform%2Fkernel%2Flinux-rpi.git mm: fix boolreturn.cocci warning Return statements in functions returning bool should use true/false instead of 1/0. Link: https://lkml.kernel.org/r/20211126073327.74815-1-deng.changcheng@zte.com.cn Signed-off-by: Changcheng Deng Reported-by: Zeal Robot Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index b5f14d5..18423c2 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -383,7 +383,7 @@ static __always_inline int TestClearPage##uname(struct page *page) \ TESTCLEARFLAG(uname, lname, policy) #define TESTPAGEFLAG_FALSE(uname, lname) \ -static inline bool folio_test_##lname(const struct folio *folio) { return 0; } \ +static inline bool folio_test_##lname(const struct folio *folio) { return false; } \ static inline int Page##uname(const struct page *page) { return 0; } #define SETPAGEFLAG_NOOP(uname, lname) \