Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1662610ioo; Sun, 22 May 2022 23:30:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7euoP54AmGJK7W/B/jNqyCJkXRcrbHJ3IzqDi5C8Mi5myKaBc9yJJmYsttAcvHYm652bk X-Received: by 2002:a17:903:1212:b0:15e:7d94:e21d with SMTP id l18-20020a170903121200b0015e7d94e21dmr21583181plh.92.1653287403996; Sun, 22 May 2022 23:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653287403; cv=none; d=google.com; s=arc-20160816; b=Hv/1y8YBw2LB3VgLDevw68I41NYOFylxpxbkFS15L5LxPE2f3eLtjyZh4Ed4WRSACY tGiMh5G3l3Ldg74u7OacG+lZlZOU1NoRAvE2rIkwQUmfqvJu6hg8flH+BDGiqxiGULk7 wdjCDRWSQpne+WjO7b45cbP1QvUpVrsh5KGlBwJlBM9x/PPgovDHdeTuM+B5HNKIsF3U znWZFX/czD7I2r/4OmWlu5Z3xOg8V5gFnZLrsi+5LLZeHoqY+p237xG6SiXiPKaCDn4k QyxtMyrBmWYeGs4SmvlDg5ZDuL8L1bKyrRibyDdhJHgCW5HOGEIioV+RPoojdZ5Ozr6P rQUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2Jd8D6LlVwyQIF5MhwULEnlbv5yF/fdM6oUbi3IJ0cw=; b=H5KevQFJt5xUTTdQt+SoJtWDgduVGcAW152xmBkdUkvk4uelE2J7sDYPJXvjGrt43i gxohYDyyZZ7NYEkwgRAs8YOgei+uF7iyqNiL0qIsO6QoSKpQmWeJsP0LkmC54qAQpWsI AtD99z+d++b3S3TysagHYlmIUsuvH54ptrwRXTDvrMuXIJoj8VYbKFn+w4SjW11Yu+S1 1K9ALVkpSJVs9y7SQtY2nrsgH1hiGDuSnKiujIF4cuHY2SaZhOv6BT8QngN6Do7MpIlA e5oxlGy25uw4a+jXm9Zpv1zju4R6ghch6zhbKtGzX25MfrG3I+nAFsVoLRF3SoXF9JD3 f9eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=3iGTtByK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j6-20020a056a00234600b005101c2ed1d6si12795063pfj.175.2022.05.22.23.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=3iGTtByK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 805DA2E689; Sun, 22 May 2022 23:07:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351539AbiEVVJS (ORCPT + 99 others); Sun, 22 May 2022 17:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbiEVVJS (ORCPT ); Sun, 22 May 2022 17:09:18 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2AA1C13F; Sun, 22 May 2022 14:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=From:Cc:To:Date:Message-ID; bh=2Jd8D6LlVwyQIF5MhwULEnlbv5yF/fdM6oUbi3IJ0cw=; b=3iGTtByKIRA7QyvS4dd4AshWPX 1BC4lTnpddbu2zGBwNdw09nGQvmUNNJhuWqzavPYKh3K1r9tdFXG9hJ5WpToeBg2FIexobk3+TJmV HL8a40cW8UorB6vX8Cwfm8+Ir857J7zE0sRIsL2cJB9JCj9iH27aD4xPc5T1W0QsBEP1nbl7rIk9P hjbEHT1njK2K01moXaSkSp4SCTlOZVahdfDm5alJL8O7LPdYsj5aPdo7U4ZY1fj+kWp4y/6zBnYul JuaCgWoZ8FLsJK1EKYC6TE/MffJHSpl9HzIEGe1cdvWQwTFt0m3EDaU/PHlQPwzG2nB1ym6txQQp2 buzRIWz22Y1kLR9gvMqi30r3PubKKu1la/gaoeALsa8kQvp6WASVOzEEZjwYoBgjfzrK+mm13Q9SD WGRPULme67H0md10yj6jl/VUqraZZZILLDSbUjWzgvsB6+kwxGQnwW0hv2YU4wghhehjLpGWC0exC Hctnre+3BLlvv7nyEWyvrXOj; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256) (Exim) id 1nssp7-0022cK-HA; Sun, 22 May 2022 21:09:13 +0000 Message-ID: <679693c4-8c4c-85b0-e4f2-7f34be3bad12@samba.org> Date: Sun, 22 May 2022 16:09:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH -next] cifs: Return true/false (not 1/0) from bool functions Content-Language: en-US To: Yang Li , David Howells Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220504130634.101239-1-yang.lee@linux.alibaba.com> From: Steven French In-Reply-To: <20220504130634.101239-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do you remember which patch caused this? Perhaps one of Dave Howell's iov_iter cifs patches that was temporarily in for-next? I don't see it anymore On 5/4/22 08:06, Yang Li wrote: > Return boolean values ("true" or "false") instead of 1 or 0 from bool > functions. This fixes the following warnings from coccicheck: > > ./fs/cifs/file.c:4764:9-10: WARNING: return of 0/1 in function > cifs_release_folio() with return type bool > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > fs/cifs/file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/file.c b/fs/cifs/file.c > index 580a847aa8b5..a9123cefd84f 100644 > --- a/fs/cifs/file.c > +++ b/fs/cifs/file.c > @@ -4761,7 +4761,7 @@ static int cifs_write_begin(struct file *file, struct address_space *mapping, > static bool cifs_release_folio(struct folio *folio, gfp_t gfp) > { > if (folio_test_private(folio)) > - return 0; > + return false; > if (folio_test_fscache(folio)) { > if (current_is_kswapd() || !(gfp & __GFP_FS)) > return false;