Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2200106ybv; Fri, 14 Feb 2020 13:32:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyvHgfuoQztbS9LGU+qIM/moSzSqrwb3Fme1VICkyTsd55GbLzXOi5iegGRe99jljJ6aoha X-Received: by 2002:a9d:6289:: with SMTP id x9mr3964466otk.8.1581715950365; Fri, 14 Feb 2020 13:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581715950; cv=none; d=google.com; s=arc-20160816; b=e81ry7OGggGvmtH5LDqBkTJQ7qoaV7jhpzSI6uUPSgOtI+NU75jsj5NucQ9eF12eRR HhnnVHib9QbHGNyUQvg6iBLyxBRcxSawcFQoEGd/rBhXAwgxlKp1H2TvRiyy39U0iw1r 5ghPD5LRjXT+HntRxEfpbUgY1oL1lS4th8y1vbwvbhKxaoQBx3pqVMRblPP3IoTfrE1J XioUlEuWGDZNpLrFEHsxBPtkfU4h9Ku2YuxY0hkieLCjrl0qh8yHX/zodQ2R58s19kHU SlrP01EHkme/3wJ13NsE8THOBDS2y1kZolyHjjl6loBPlk8HelROel/z0Mc3x8Geg4cs 9uXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5cWsOiZ9p9fG4mBWdOGp+d65+R98LBK+JLnBTHAy/W4=; b=FhrqevYJ2dMnP8mbQWLn2OBbW4qhQm2Vshj43uxYhdO0KKojyEIfb6/Y4LrO+ugKbv n7M/FFd4RqvYU1b7LgxHTwAmFAjz6RXgpU63785YbOjAA5RF/4l05kcHBnUhRMzezQtt y95kh75IF34mCQFE/gv3M7y9cLGPMwe2W6cEEZxRjgWTfCys/8xV4iwYPNzXTA46eYgD XIug+n2RW+ZoYEDl1V9XoFuCdKYosyKcvxHoidbLyXI2dSzPLs7WJQ/QMz9HwV3oBfsM 5/D9N3FowPchchgDNw91f2ZlyNqAjS1S0y/xCZstUnG5e3rrU0r/9yLTESEMfIb/g3lk 176A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si1915816otl.288.2020.02.14.13.32.18; Fri, 14 Feb 2020 13:32:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388712AbgBNVbm (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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--;