From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5458929607308337678==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] vfs: fix boolreturn.cocci warnings Date: Tue, 04 Aug 2020 13:01:00 +0800 Message-ID: <20200804050100.GA2732@b9004743bf73> In-Reply-To: <202008041353.DXBhoRlv%lkp@intel.com> List-Id: --===============5458929607308337678== 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: 610bf337976b ("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.8/zen-sauce head: 4ae00f4cbefe933616f33bf79935393ec49dbfa3 commit: 610bf337976b48286c82c09a4a8df8bdfcde38a8 [20/26] 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 --===============5458929607308337678==--