aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangcheng Deng <[email protected]>2022-01-14 14:07:21 -0800
committerLinus Torvalds <[email protected]>2022-01-15 16:30:29 +0200
commit1611f74a94ba2e0f2d25b75008ed8e76e122097a (patch)
treeb42a10d70e2b598b9d2d6534abd501835e4eac3c
parent39c65a94cd9661532be150e88f8b02f4a6844a35 (diff)
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/[email protected] Signed-off-by: Changcheng Deng <[email protected]> Reported-by: Zeal Robot <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--include/linux/page-flags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index b5f14d581113..18423c2157e8 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) \