Content-Type: multipart/mixed; boundary="===============7995227428836794183==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [PATCH] vfs: fix boolreturn.cocci warnings Date: Sat, 15 Feb 2020 05:30:42 +0800 Message-ID: <20200214213042.GA92577@9560152b1213> In-Reply-To: <20200211175507.178100-1-hannes@cmpxchg.org> List-Id: --===============7995227428836794183== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild 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: 98e2565539a0 ("vfs: keep inodes with page cache off the inode shrink= er LRU") CC: Johannes Weiner Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Johannes-Weiner/vfs-keep-i= nodes-with-page-cache-off-the-inode-shrinker-LRU/20200214-083756 base: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-ne= xt 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 --===============7995227428836794183==--