Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1512739ybb; Thu, 2 Apr 2020 02:11:25 -0700 (PDT) X-Google-Smtp-Source: APiQypLZf94sxaEjVs9I1KUfDfOpb7VP0TzWJjcHtkSwBUXEob1fgSKDII9NnmdH8/y8bZzFfTbo X-Received: by 2002:aca:adc7:: with SMTP id w190mr1494938oie.42.1585818685211; Thu, 02 Apr 2020 02:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585818685; cv=none; d=google.com; s=arc-20160816; b=Y59B4g0zqldq2cYqal0spNkfE8uN5z76r37HBXZITu8ut3LNY7owBDbFBJurQKNxNT tbB2044MODrBSrorc5+LdKoXLIxFveetkX6U1QQCP1yUgpfW3WHeuziKPjjC56Xkl+1M 5m2Juwv+iBqOVihakoyl0K66/I/qMXv/2nuGC9BTpd5wPPZRA3lBUo29zBdlx9FnxoSH DsZbmAIGCJKHS8WMlm+l1V5Mzb+C4T7UzMnMluxKDobhD+kFsv9KjvMXyGkDOfKkQ083 7Ubtvg/0O8TjqX52KaVNmX0PC7LQXmyVPbhoI2ydcTBERYhap4/4jUsBTJaRUekGDVqU Aq5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GJCkFl6WpKR+h7yQyBDL6WQuagGUuT+BIBgfvqqVn0U=; b=0AMr5fMdaggf98Hi5wfR8efmWYOGTqjhLxQ4C/i+PBY7v1EdaobJuGAW7U8wqcslMZ dyZiHCgcWV3jDqvHK35Q8vPMY9AboBQJNhWufuByPrjTL2nl/lKcJHSkaLg0MuUm45oI lbJQQV1v7T7bl1rj09xLqojQwRJDyo6pXh6tu+e/dEteW9aHhLMqP4pBvds7WnNRTlyR xsWKe9lOntzgGpzwKBkjg/gflISR8G4InHT58Fyn4St2HjM2MANeidOAeKgzJ3/gJyli PaycBYJE80Oe7msH93rjvVc5xkh96/DDKHr8lk+9PXo7QQ6TvCFhbd7fNmodOni5CNIu J7Aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si2043341oom.58.2020.04.02.02.11.11; Thu, 02 Apr 2020 02:11:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387896AbgDBJJi (ORCPT + 99 others); Thu, 2 Apr 2020 05:09:38 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2630 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387723AbgDBJJi (ORCPT ); Thu, 2 Apr 2020 05:09:38 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id D73D17AD3C2D0714641B; Thu, 2 Apr 2020 10:09:36 +0100 (IST) Received: from [127.0.0.1] (10.47.6.242) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 10:09:35 +0100 Subject: Re: [PATCH v2] scsi: hisi_sas: Fix build error without SATA_HOST To: YueHaibing , , , , CC: , References: <20200402063021.34672-1-yuehaibing@huawei.com> <20200402085812.32948-1-yuehaibing@huawei.com> From: John Garry Message-ID: <8470370b-5359-4b82-ed55-8018f8b60697@huawei.com> Date: Thu, 2 Apr 2020 10:09:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20200402085812.32948-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.6.242] X-ClientProxiedBy: lhreml729-chm.china.huawei.com (10.201.108.80) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2020 09:58, YueHaibing wrote: > If SATA_HOST is n, build fails: > > drivers/scsi/hisi_sas/hisi_sas_main.o: In function `hisi_sas_fill_ata_reset_cmd': > hisi_sas_main.c:(.text+0x2500): undefined reference to `ata_tf_to_fis' > > Select SATA_HOST to fix this. > > Reported-by: Hulk Robot > Fixes: bd322af15ce9 ("ata: make SATA_PMP option selectable only if any SATA host driver is enabled") > Signed-off-by: YueHaibing Acked-by: John Garry > --- > v2: use correct Fixes tag > --- > drivers/scsi/hisi_sas/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig > index 90a17452a50d..13ed9073fc72 100644 > --- a/drivers/scsi/hisi_sas/Kconfig > +++ b/drivers/scsi/hisi_sas/Kconfig > @@ -6,6 +6,7 @@ config SCSI_HISI_SAS > select SCSI_SAS_LIBSAS > select BLK_DEV_INTEGRITY > depends on ATA > + select SATA_HOST > help > This driver supports HiSilicon's SAS HBA, including support based > on platform device >