From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 636C2C35242 for ; Fri, 14 Feb 2020 21:31:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38A22222C2 for ; Fri, 14 Feb 2020 21:31:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388252AbgBNVbm (ORCPT ); Fri, 14 Feb 2020 16:31:42 -0500 Received: from mga17.intel.com ([192.55.52.151]:59117 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbgBNVbm (ORCPT ); Fri, 14 Feb 2020 16:31:42 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2020 13:31:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,441,1574150400"; d="scan'208";a="267699836" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 14 Feb 2020 13:31:38 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1j2iYk-000GfE-3Y; Sat, 15 Feb 2020 05:31:38 +0800 Date: Sat, 15 Feb 2020 05:30:42 +0800 From: kbuild test robot To: Johannes Weiner Cc: kbuild-all@lists.01.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Chinner , Yafang Shao , Michal Hocko , Roman Gushchin , Andrew Morton , Linus Torvalds , Al Viro , kernel-team@fb.com Subject: [PATCH] vfs: fix boolreturn.cocci warnings Message-ID: <20200214213042.GA92577@9560152b1213> References: <20200211175507.178100-1-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200211175507.178100-1-hannes@cmpxchg.org> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: kbuild test robot mm/truncate.c:41:9-10: WARNING: return of 0/1 in function '__clear_shadow_entry' 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 shrinker LRU") CC: Johannes Weiner Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Johannes-Weiner/vfs-keep-inodes-with-page-cache-off-the-inode-shrinker-LRU/20200214-083756 base: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-next 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) != entry) - return 0; + return false; xas_store(&xas, NULL); mapping->nrexceptional--;