Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1604679pxb; Wed, 10 Feb 2021 12:12:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIXrvr4RJYOhCdlEwqWS5hV+fFkmSDbiYZCuz+F3Jm6g3edmHK/tjqXK9Plde5+Vf8X3fk X-Received: by 2002:a17:906:6bda:: with SMTP id t26mr4707845ejs.50.1612987966300; Wed, 10 Feb 2021 12:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612987966; cv=none; d=google.com; s=arc-20160816; b=BjDUOvKD5y45m9T/tEeSPAzsNDkSZ27fSt2a3YoepkW8ynZM/KowT5ZCCi5QAoM/S0 w+yYEFf2gn+d/HW5ySGmHKp/A8AGDGNWEMyK6X1sz4coHHPKGzcMclh6aUyiQoUs4qNN 6e91PoKGsn9RTaggT3VS+5rXMGpEWO0wRfmhwMYPPSHbUcKEUfpDWTAWXql+fKdBCxfW itTAiTWnPWvbYjUpo7HZuEt4e0T/bzDYMfdsQzRI3BzlihWBcJfZV5TftV6sUc/JHsnU gdy/JG4iIBSolU72sBb+lfJ3Y8Ur8KOR6YCtCxfdgoqnfgsRiXQGBhMIavM/qyuthOtF T5Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=ndn4QXcgDT/AHu9MMIWMBE4hxwkO/AqfgGjerwvC07E=; b=u13yXdyEEdDwE0iW738I1FW7sgInor8vONck/k84l/7nwEP/m+6aerdkf6gMAQukyJ m3G8cMwYphD9DsFdfIt4pG64wzZDvlwnu9A+/haFWxKQY5cOtb40eNkMdA5btKgeiQue Cgh/KFpmJMWle0Ir9KPSaPkuFrtyicAYqJiR8qfN6ZGIb9IXIjdZ3SZxN55Z6x86upvu ZpKShSAyTNNM2V8Vr6zIboR7KP2nkHkm/NNpXEEQe9gFFX4G8L4fhwgySZru5hlSOmXT 8f1yFQTse+c08vh5M74Fx4wi37zp+wLC0d70CdGaNyZi/sPmMDqMJv7Cwl+CGN03FUlr nM6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u14si2083857edx.321.2021.02.10.12.12.21; Wed, 10 Feb 2021 12:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232102AbhBJUKF (ORCPT + 99 others); Wed, 10 Feb 2021 15:10:05 -0500 Received: from mga07.intel.com ([134.134.136.100]:30166 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbhBJUKE (ORCPT ); Wed, 10 Feb 2021 15:10:04 -0500 IronPort-SDR: IH8Ziy1k8mLsW16untHuT61yC+kunzqYcxH4sV1puAIQCJGhyTTgx3VvpOEhdSHWqhYNUK4yb1 sCa20AXAvbTA== X-IronPort-AV: E=McAfee;i="6000,8403,9891"; a="246210597" X-IronPort-AV: E=Sophos;i="5.81,169,1610438400"; d="scan'208";a="246210597" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2021 12:09:23 -0800 IronPort-SDR: +J1Kij01n+XrDgYX1SEFlvkGyh/OTLZW1LLUC+kRwgwbnA8ZqMddbIeh8YR2sypRmsNq+IXP4J lZVOi6moQIPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,169,1610438400"; d="scan'208";a="510535168" Received: from lkp-server02.sh.intel.com (HELO cd560a204411) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 10 Feb 2021 12:09:20 -0800 Received: from kbuild by cd560a204411 with local (Exim 4.92) (envelope-from ) id 1l9vnb-0003F7-MQ; Wed, 10 Feb 2021 20:09:19 +0000 Date: Thu, 11 Feb 2021 04:09:16 +0800 From: kernel test robot To: Brian Foster Cc: kbuild-all@lists.01.org, "Darrick J. Wong" , "Darrick J. Wong" , Allison Henderson , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] xfs: fix boolreturn.cocci warnings Message-ID: <20210210200916.GA96657@7319c0dab462> References: <202102110412.GVAOIBVp-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202102110412.GVAOIBVp-lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot fs/xfs/xfs_log.c:1062:9-10: WARNING: return of 0/1 in function 'xfs_log_need_covered' 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: 37444fc4cc39 ("xfs: lift writable fs check up into log worker task") CC: Brian Foster Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git xfs-5.12-merge head: 560ab6c0d12ebccabb83638abe23a7875b946f9a commit: 37444fc4cc398266fe0f71a9c0925620d44fb76a [25/36] xfs: lift writable fs check up into log worker task xfs_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -1059,7 +1059,7 @@ xfs_log_need_covered( bool needed = false; if (!xlog_cil_empty(log)) - return 0; + return false; spin_lock(&log->l_icloglock); switch (log->l_covered_state) {