Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp42105yba; Mon, 20 May 2019 04:40:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSpAPzD8/qoX/H/ZyDKQ34wIu4psBWyjZBaq1xAUr1ukdEDF6nQ/5XDYR8uSoM07PqWqsB X-Received: by 2002:a62:ee0a:: with SMTP id e10mr79562280pfi.6.1558352434915; Mon, 20 May 2019 04:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558352434; cv=none; d=google.com; s=arc-20160816; b=QvCH4YfWx7XTAAf5CCPzrRHjkpqjmau6ZDWqVLbnIcs/nIh1j5HI0UDNcloPCu0jCV +ukbItqGSEsnWzraU5Kjus+4KKFjpM1P75DpiULscKKHqzUvW1fWiPEU+XAEcHjVJZKt f99kClbKloUVb6RKQYp7WQY9RJf2n1QJVrP9djHLTpxpKWns7lq9UZKYpcPBkNXO7AGj vwZ7ovE5kM8bSfmKFLb1mezYIQpYgH8+PvGyIBgeBIgGqKwW0c21XdYVYgDsx8nFz6kf 2unogqPmMbN96BSQ2f9dSffHUlLpq/haZjypF0G2ytmeW5L8ZK1hJi+uT9VtguiyblOK 6JXg== 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=3MhyfOR5FvkNHkdD4DJoqNpPD2wkRYyBlZgeceIBi9Q=; b=unsYn16DzkCTsrBGyF1v+iijQ9cwx56JouGOy6wRzz6tApY5k+IvnbGjv3FP19vR7U wCLj+REe7ycl9rRLLvKiAV0EbmnKBahiXsDixg3bh0/s/q4SpLc5ImDiPOP/n5I8c9fA C6fRN2zf0HRxoPgCSFjnRJnrPt9vUaGfD/p8v1WBETsAKH8esO2nsWm1p7ptAqiDH/iJ hqttjyq4tn8rYgeYIsP8qElOoVkAy49B6aSWAxSinn+Kczgt8rctBz6D1QzyvNL07eJ9 Ip6YebowtT7c83qATZ7Sh87P/TyTlYg6Cqof+3wfio1orPSNGbCWVHVn9oD62H3wPkf/ WCiQ== 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 23si6927727pgc.469.2019.05.20.04.40.20; Mon, 20 May 2019 04:40:34 -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 S1731528AbfETKe5 (ORCPT + 99 others); Mon, 20 May 2019 06:34:57 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7661 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731455AbfETKe5 (ORCPT ); Mon, 20 May 2019 06:34:57 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 926B8E26C95E4047DF58; Mon, 20 May 2019 18:34:54 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Mon, 20 May 2019 18:34:51 +0800 Subject: Re: [PATCH] ACPI/IORT: Fix build without CONFIG_IOMMU_API To: Christoph Hellwig , CC: , , , , References: <20190520065746.17068-1-hch@lst.de> From: Hanjun Guo Message-ID: Date: Mon, 20 May 2019 18:34:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20190520065746.17068-1-hch@lst.de> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/20 14:57, Christoph Hellwig wrote: > IOMMU_FWSPEC_PCI_RC_ATS is only defined if CONFIG_IOMMU_API is > enabled. > > Fixes: 5702ee24182f ("ACPI/IORT: Check ATS capability in root complex nodes") > Signed-off-by: Christoph Hellwig > --- > drivers/acpi/arm64/iort.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index 9058cb084b91..3e542b5d2a2d 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -1074,9 +1074,10 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev) > info.node = node; > err = pci_for_each_dma_alias(to_pci_dev(dev), > iort_pci_iommu_init, &info); > - > +#ifdef CONFIG_IOMMU_API > if (!err && iort_pci_rc_supports_ats(node)) > dev->iommu_fwspec->flags |= IOMMU_FWSPEC_PCI_RC_ATS; > +#endif > } else { > int i = 0; This was reported, please refer to this patch from Lorenzo: https://patchwork.kernel.org/patch/10946845/ Thanks Hanjun