Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp482357ybg; Mon, 1 Jun 2020 06:36:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz9YqlYcj1SbmcjGVengMi6h/DtMb2tG+pHp7ZINuIOZ+/crjH8ZBR1ba/tjV6u1evoael X-Received: by 2002:a50:dac4:: with SMTP id s4mr22393814edj.84.1591018598856; Mon, 01 Jun 2020 06:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591018598; cv=none; d=google.com; s=arc-20160816; b=Va/PyJYAIWSmnmvi6eOO1BmWlHw7Xx1WTlDjiwrg9dt54i6MACN/ZVFOwbYT5Zp0E7 9QlfA3P9sXi7/mgZiLIiTfn3vFF/gBlxRIEuBLZ+zvWeKuOZt0FfBq9/7WZ17UpVNzEi kkAsCpDcxJmUSqiGnkeYUftPAzZVHI5d3m1XMaAnchEcCmKLpua7kERNy/ovuEOQqE7X GpEzPB8MhoE07OpgZxiLCM9GPAJpk1REhC66WEZvJQmiStM4gSc2pElalnBfU+X0BNVM idiOVdyFfWJGhyjM1D0WxbBWDM2piEjHHr/d/5wL43sJsQJMn44SydSYH/brU1iNR5io AYyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=S/ANr4BP2J/wqUCUflp891nTue09jTyHvLhAPSPWfJs=; b=aRrqqKx0RfEtoqsILXRv+tNP9zgDWME0ydA/RqUjsnTrfr6FSBRm6vfCR07F4oye3z 8psYFHTRR64bekFdKgGMaB/i9quZ8rEDqzHPCMY9h+p9sOArZFFmI04CFUFQmGhPu0Wf czs+w4bON4qUu3BFEXdHvYt2PW7G7DfGhZnrN3ZPCNokwtEKCINC4VHgjJP8b5Vq0eSa Vcgp7ADSUzqQZxAxV61RYVmhphrE/WgIxIvpMRlhLEQ+7fdI0GLJBFn8RELDw+Jlw9gB QsYsqD7kR2hHvTl/j18frEbc+u7hlLX/qaoKwh81/H52ggaWAbQ1qhUPdE1mfUk0OLZI +RCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lF8fKTgT; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw6si10783396edb.390.2020.06.01.06.36.16; Mon, 01 Jun 2020 06:36:38 -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=@samsung.com header.s=mail20170921 header.b=lF8fKTgT; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbgFANd5 (ORCPT + 99 others); Mon, 1 Jun 2020 09:33:57 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40723 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbgFANd4 (ORCPT ); Mon, 1 Jun 2020 09:33:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200601133354euoutp01db9203e1119c0302bdbca37d81c7c041~UbtYaeutZ3166531665euoutp01_ for ; Mon, 1 Jun 2020 13:33:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200601133354euoutp01db9203e1119c0302bdbca37d81c7c041~UbtYaeutZ3166531665euoutp01_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591018434; bh=S/ANr4BP2J/wqUCUflp891nTue09jTyHvLhAPSPWfJs=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=lF8fKTgT7S2/YMWuxi09tbZ3ylPdCKfIQMmeGasV+r5d5g0HSmuBVx3yE3fYFe9sQ ASCL6zy/EiIhuZzbl9N4zD471QLBOOueuDa/ffeZ3+CGc9csgsgj8qWZqNRdlvlc2b w/ZaRzwkEpljfQTs9fX1rSB5l/0FFu+bX6xbthOY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200601133354eucas1p215113c5d8051f0987d8696e20e05f066~UbtYQMD_80473904739eucas1p2i; Mon, 1 Jun 2020 13:33:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id EA.34.60679.1C305DE5; Mon, 1 Jun 2020 14:33:53 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200601133353eucas1p14b7a0914cb8b4918974f6a334dc06a76~UbtX6t3z72382623826eucas1p1a; Mon, 1 Jun 2020 13:33:53 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200601133353eusmtrp1a941ced213d7b78d5d22ca087a7abca6~UbtX6J8982919429194eusmtrp1W; Mon, 1 Jun 2020 13:33:53 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-76-5ed503c13d50 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 74.CC.08375.1C305DE5; Mon, 1 Jun 2020 14:33:53 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200601133353eusmtip1f1d4636c02f0ff8daa80aea0d7de5c56~UbtXk9-GI1178011780eusmtip10; Mon, 1 Jun 2020 13:33:53 +0000 (GMT) Subject: Re: [PATCH] ata: return true in ata_is_host_link() To: Jason Yan Cc: axboe@kernel.dk, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: Date: Mon, 1 Jun 2020 15:33:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200507110637.37341-1-yanaijie@huawei.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjleLIzCtJLcpLzFFi42LZduznOd2DzFfjDF48t7FYfbefzeLYjkdM Fpd3zWGzWLSnk9mBxaPlyFtWj8tnSz0+b5ILYI7isklJzcksSy3St0vgyph+2r5gHnvFvdk9 7A2MX1m7GDk5JARMJHa/OM0MYgsJrGCUeLlEuIuRC8j+wijxf9tsVgjnM6PEu/ntLDAdl583 skN0LGeU6LxiDmG/ZZR4PSUNxBYWsJaYOO8LE4gtIqAs0Xh/Otg2ZgEfiRPzuxlBbDYBK4mJ 7avAbF4BO4ltjRfArmARUJHoPfwfbJeoQITEpweHWSFqBCVOznwCFucUsJRYuGsmM8RMcYlb T+YzQdjyEtvfzmEGOVpCoJ1d4lP3bXaIo10kZm/bxQxhC0u8Or4FKi4jcXpyDwtEwzpGib8d L6C6tzNKLJ/8jw2iylrizrlfQDYH0ApNifW79CHCjhKb+h+zgIQlBPgkbrwVhDiCT2LStunM EGFeiY42IYhqNYkNyzawwazt2rmSeQKj0iwkr81C8s4sJO/MQti7gJFlFaN4amlxbnpqsVFe arlecWJucWleul5yfu4mRmAqOf3v+JcdjLv+JB1iFOBgVOLh5Xh0JU6INbGsuDL3EKMEB7OS CK/T2dNxQrwpiZVVqUX58UWlOanFhxilO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KfCWW4oxEQy3mouJEAPjsEoa1AgAA X-CMS-MailID: 20200601133353eucas1p14b7a0914cb8b4918974f6a334dc06a76 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200507110752eucas1p21e8a1d127642c53440fe64c4a770e3f7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200507110752eucas1p21e8a1d127642c53440fe64c4a770e3f7 References: <20200507110637.37341-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/7/20 1:06 PM, Jason Yan wrote: > Fix the following coccicheck warning: > > include/linux/libata.h:1446:8-9: WARNING: return of 0/1 in function > 'ata_is_host_link' with return type bool > > Signed-off-by: Jason Yan Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > include/linux/libata.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/libata.h b/include/linux/libata.h > index 8bf5e59a7859..e05a8ed2e31e 100644 > --- a/include/linux/libata.h > +++ b/include/linux/libata.h > @@ -1443,7 +1443,7 @@ static inline bool sata_pmp_attached(struct ata_port *ap) > > static inline bool ata_is_host_link(const struct ata_link *link) > { > - return 1; > + return true; > } > #endif /* CONFIG_SATA_PMP */ >