From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0415520116914350437==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] vfs: fix boolreturn.cocci warnings Date: Sun, 18 Oct 2020 02:46:18 +0800 Message-ID: <20201017184618.GA89156@4242b66620aa> In-Reply-To: <202010180212.7bnkpexK-lkp@intel.com> List-Id: --===============0415520116914350437== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot mm/truncate.c:41:9-10: WARNING: return of 0/1 in function '__clear_shadow_e= ntry' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 78a9d82e733f ("vfs: keep inodes with page cache off the inode shrink= er LRU") CC: Johannes Weiner Signed-off-by: kernel test robot --- tree: https://github.com/zen-kernel/zen-kernel 5.9/zen-sauce head: a49dc684580cbc31949bfc4220f8ed5346382c49 commit: 78a9d82e733f1eae572c07bd62a40a405f9ae87a [19/24] vfs: keep inodes w= ith page cache off the inode shrinker LRU truncate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/truncate.c +++ b/mm/truncate.c @@ -38,7 +38,7 @@ static bool __must_check __clear_shadow_ = xas_set_update(&xas, workingset_update_node); if (xas_load(&xas) !=3D entry) - return 0; + return false; xas_store(&xas, NULL); mapping->nrexceptional--; =20 --===============0415520116914350437==--