Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1982504pxj; Sun, 16 May 2021 10:15:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyewtvrkRZYHuwt3gcv2k6WX+yZ8nRt0ZYuir64dEEowsAhep4DlitlGV/ELZeWNhYrjXi9 X-Received: by 2002:a05:6402:1c97:: with SMTP id cy23mr6448483edb.213.1621185343473; Sun, 16 May 2021 10:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621185343; cv=none; d=google.com; s=arc-20160816; b=UY9HiKyi/BLN/wYH9VmCpQZXkkj/UTZWohue5YWWo3dmMRmMdUNPqxjbMVh/Z13LQD tvfmP9jY7JaGvq3N8blIwtJ15OfU7CBwlaCQmKmNfQ3KpnPLuQuJfBBoFz59rfCmW6uM DtmSFeJbkYjsERMcM6NQxaH4RdJ85hgQtuiGe/QlAvs715WsmlhWlzuq1mTebVptbq1h VE/+Ml54OG3MUdN2aVvNxoJ3OHvsTf0N8BgpiWCoA45ygCgaCaCtH8FpDNHc/hYIrFEG 9tq+7oa/0NVEvTXDZTwQUBrWZfNnz1c+KjdU2nPk5u42OzpS4rHm5elwX/fhSOiNtVAB Wu5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=4iUzn3zHyIHxkXGKg+McsZZW45slq4tSdaSJBoUGIMg=; b=NMD4RjfTxPn+5ALSrh2zTpDdKMuVKbooWcRM0z2oqeNB8izV2GBo2Oz6mVuYh6h38H hrT4/k5n0zVrUOyUPH3nXOHO9cDYfPqacBwcpTHIrxLqvhgtpJo8kTfJjTKSDQFHT7QC EPf5s6iBYVaIX5YrUY4UIfULK4St4eW/yxymXzuFmDka+wxeBRRy7qxULbwgJNJFeK5B xpuXY2pQ29BohJo2z2YTrXx6pNA5S0hTx1f1Wr4Do+7Fdz6T01Uhw82oMHKehQo/JyER FOczo2efaXkE+5Lj+36/1YIDcNBqbnuyZdDo6QfXjpkptyMN8Zp3KwYGa8EU0JBKxw12 sreg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YKfs1taD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw23si4982502ejb.144.2021.05.16.10.15.18; Sun, 16 May 2021 10:15:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=YKfs1taD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230459AbhEPQZf (ORCPT + 99 others); Sun, 16 May 2021 12:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbhEPQZe (ORCPT ); Sun, 16 May 2021 12:25:34 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72607C061573; Sun, 16 May 2021 09:24:18 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id t15so4068130edr.11; Sun, 16 May 2021 09:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4iUzn3zHyIHxkXGKg+McsZZW45slq4tSdaSJBoUGIMg=; b=YKfs1taDo1C0l4Eibti8xcHjG2eLfSXGaUCfjU5fyLR/EttCUGQ0ItkLTTQDYaXtKi TkODHbQIVFn05l8RDH1zf7XSO7Y5nPZfsTKJ7asUSGSMsOoqkdtqj1VsPJzGTFDZAZTt wVVeC+E4iXfPxRDl9E/4oaJ6hm8kjqMdcyfW9QWG5vxzoV16XEbzlfnoW33sQyu5NtmR vgvHqulrMLVCq/pyJMC5v+iseW/JtMXdXSx6nLPoSae8pJxx77E06U6MxR2hkkWkwaxd Y0TG4gTgP7+pnjXxPGlR81LIoXxlkPZZ+qpyOtFMpQV7dZ+qxh4HHjoNW8Mdp1vhGOHc hDdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4iUzn3zHyIHxkXGKg+McsZZW45slq4tSdaSJBoUGIMg=; b=KxCToqeUOvN1pyQ2Vu7o5ScpZmkXPzc9dx9PSB97P6tDzWZTEpzHDOJ9sL4bX7AUu3 6D5a9T5ZXO/6VpRXbcaJDlG54e4Dul777DqsxYRypGj8lS/nwFhQwk9XaLBMYw923AW4 5gEvoqJmmKgz08wP70mz3tpYN9lpjtcymj/pIPkHsrG2EdZ1KZEkul0zCvOcZOczWv7J PilFMCWD3KH8A40kFL3ejxQ1giLDHeopK0RDDLzgpnQsaIxyh28Gimd9mTmWVVQ5Q/Gy PlcSzhzer9/BrL0IAKWPfKn9g16sYyUrghFieD6kOqD3/Sv5s2FaQEy6QGLxPrs7iFw5 xkEg== X-Gm-Message-State: AOAM532SNpogEGktPrGJ4p9SBxjybe0yr/Td3cade6zxLOryMO566lLe ns/xurCgm42uib++B2/D7qPHg+AaET0= X-Received: by 2002:a05:6402:14c2:: with SMTP id f2mr16279825edx.69.1621182256978; Sun, 16 May 2021 09:24:16 -0700 (PDT) Received: from [192.168.178.40] (ipbcc11466.dynamic.kabel-deutschland.de. [188.193.20.102]) by smtp.gmail.com with ESMTPSA id z4sm9173852edc.1.2021.05.16.09.24.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 May 2021 09:24:16 -0700 (PDT) Subject: Re: [PATCH] scsi: target: tcmu: fix boolreturn.cocci warnings To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, "Martin K. Petersen" , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org References: <202105160749.IImZN2gL-lkp@intel.com> <20210515230358.GA97544@60d1edce16e0> From: Bodo Stroesser Message-ID: <2dc20427-50d9-093f-40ae-b031426939a4@gmail.com> Date: Sun, 16 May 2021 18:24:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210515230358.GA97544@60d1edce16e0> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.05.21 01:03, kernel test robot wrote: > From: kernel test robot > > drivers/target/target_core_user.c:1424:9-10: WARNING: return of 0/1 in function 'tcmu_handle_completions' 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: 9814b55cde05 ("scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found") > CC: Bodo Stroesser > Reported-by: kernel test robot > Signed-off-by: kernel test robot > --- > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: c12a29ed9094b4b9cde8965c12850460b9a79d7c > commit: 9814b55cde0588b6d9bc496cee43f87316cbc6f1 scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found > :::::: branch date: 6 hours ago > :::::: commit date: 2 weeks ago > > target_core_user.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/target/target_core_user.c > +++ b/drivers/target/target_core_user.c > @@ -1421,7 +1421,7 @@ static bool tcmu_handle_completions(stru > > if (test_bit(TCMU_DEV_BIT_BROKEN, &udev->flags)) { > pr_err("ring broken, not handling completions\n"); > - return 0; > + return false; > } > > mb = udev->mb_addr; > Acked-by: Bodo Stroesser