Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1643230pxb; Wed, 10 Feb 2021 13:07:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUnpyUuN/2oAHQP9MyHqrifvIzXIm49Zadk/JsN15dlrKRwSqQTZ7ItVKZtI2cpHeLdm6N X-Received: by 2002:a05:6402:26c7:: with SMTP id x7mr5175974edd.24.1612991276036; Wed, 10 Feb 2021 13:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612991276; cv=none; d=google.com; s=arc-20160816; b=SEgj+kEhtwsFbCCGF6mtB3wmqEw7iK41GbKuJ603GR9beS8TIard5ObQCkg2y88zim X71OZozu4+YCztq3+Oyw4jUGcgQvgIlkyEwblAdMa0nlkZPRvAdAcAJY+lEY+n/vEcw0 fdGhctEKK6FFDAk73XqsCl3nGNYVyvYwHFgzEjcSodI4eapOktnhznl0/wXfSTrP73I8 a7+6D82+Lc2v2jZGEUkB1Izst978CvfciYorzDL9K1cjeI2UH3xmdT3P4dB1zVB8IRWn drQRgvdq0GlyDkMmE4qroTjgEt2C8lL267y8vmK5Rad7XESYcq0q7Afj2L4yz3Qq/sKw sUOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xk9P6dEasN8ZToBGbelxXk0DU9VLucwPVrbS6IoXDQ4=; b=X+iE0pM9bOTQV6KMYu8NlV4TmaZi3aKa0H8P00aE1hZGgep2WOkf8gpXs4zFOeP3SV 1pVxK9wZNM6SPeRWYIErxPMNBSaUZqOIFMgyV8qeI4dURl1vd1kCDrdaUyNz1aR8WZ1k m+QRXWjut6GGh46NljvpsGdQwHI8rvaFnKa7kiJpgEmqFb/qPhckD689uicHDcrsUtBJ 1yQRov2H6ao5jqQWfwdc9GpVfGP+Bz/Orc5TsoVUrfu2+UZuGfoh48MPBVaZpnGtechM 6aPLiJf8uu1CRQnt6eoQMOt+KLe4Bp2k6ArSOWH7YK9ZaBDDP1YnXzZboRO8DTe65VLu igrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AK7epefn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re9si2026998ejb.135.2021.02.10.13.07.32; Wed, 10 Feb 2021 13:07:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AK7epefn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbhBJVEc (ORCPT + 99 others); Wed, 10 Feb 2021 16:04:32 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45454 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbhBJVET (ORCPT ); Wed, 10 Feb 2021 16:04:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612990973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xk9P6dEasN8ZToBGbelxXk0DU9VLucwPVrbS6IoXDQ4=; b=AK7epefnWiwV9uifoX1pA0WzSXPt5Wz0LjD+yOQ9Ad9r5qCIsE6/WFZhwKMjdx/2U5Mwzj eqIEi1eCVQxNVbiEtQ4bcXTDAMhBtuDcVveziHQljT8qPTjrTDCaUjXAaZs/FgHQ5QiQUO LlxdyCHcbuf/G85YkwJxueBL4Av08Uk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-405-3xhQsXSLOWKSi6-AbbIipA-1; Wed, 10 Feb 2021 16:02:49 -0500 X-MC-Unique: 3xhQsXSLOWKSi6-AbbIipA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32E3A91273; Wed, 10 Feb 2021 21:02:48 +0000 (UTC) Received: from bfoster (ovpn-113-234.rdu2.redhat.com [10.10.113.234]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C97A10013D7; Wed, 10 Feb 2021 21:02:45 +0000 (UTC) Date: Wed, 10 Feb 2021 16:02:43 -0500 From: Brian Foster To: kernel test robot 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: Re: [PATCH] xfs: fix boolreturn.cocci warnings Message-ID: <20210210210243.GB90895@bfoster> References: <202102110412.GVAOIBVp-lkp@intel.com> <20210210200916.GA96657@7319c0dab462> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210200916.GA96657@7319c0dab462> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 04:09:16AM +0800, kernel test robot wrote: > 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 > --- Reviewed-by: Brian Foster > > 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) { >