Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2873457pxa; Mon, 17 Aug 2020 23:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzjoJZjv66ewhbu5yWCFhgHsSYJT+NXc7FSC0YWkQ3SPJAsvCSvePeBKkpiTRdnCzChRI7 X-Received: by 2002:a17:906:46c6:: with SMTP id k6mr17734774ejs.230.1597732395223; Mon, 17 Aug 2020 23:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597732395; cv=none; d=google.com; s=arc-20160816; b=tEqDgQmDReiPHcK2LwRZ4R1eX2uDZQyFLSjud4L829aPsZgE59bjhvkoUkGr9GZ0nX ExTU4rWPMcTjdEbztzSoDYayHPuE+0apWwwY9Cx90138BVEUDf4JjzLdXZwXDXb5Aln4 HVvHUFsqzuX370yh3UNR1BUJhfCvQ+uXX5Y4rp94M+HHeR4Dyn34drdSGPyyUh7Ecugx xslDpO/wzZsBdQTXySl9/FMrciAmLBwKqKVm+MLw0FMNISdfmHYr8WcOHvRtfTZ4gpf7 2vbButzoYiu/UpiKI4RoEN4ZXpqMk4fndU5IyIe7qU/JCtx52KMe68pK3VoSkblzfymB Fwew== 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=iPcBYuJzszlvOeMMQqAU3qhnlkNOQXNvXMU7RtKH4YA=; b=JUyINdm5kHkETbOel19RQKBy0NUG8mMPPT736LAbgZ88YumFh/w6hTnwGsDSYssc7j 82GtHZ1TSiLyG1NWu/dv0xVLmHdiZT3WJnDffAI90d/IuN84g5sOYuA3e23OijBBdIF8 //ckni0BfJGHqzH1QSDhVXFyHLdMxCBax5Rm8m9cL3s7L9sj00oL1FliuL2ZTBjZhIUk 0ZsB12MI2pL4HkvMl/X+Gsgu5p4UAmwTXfrw8qBLMVJv6+wwI4Hm+z+yIpmWl85f1kuM UTBZs2A17Gjal9/j86Ng/5g3IhbmmqBmPst7amDK+g21uxloHgWojG2JzOOBvHKtYEod 84Zg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si13391918ejo.230.2020.08.17.23.32.51; Mon, 17 Aug 2020 23:33:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbgHRG3q (ORCPT + 99 others); Tue, 18 Aug 2020 02:29:46 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46766 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726519AbgHRG3p (ORCPT ); Tue, 18 Aug 2020 02:29:45 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9AA41F6886A1652A6D0B; Tue, 18 Aug 2020 14:29:42 +0800 (CST) Received: from [10.174.185.226] (10.174.185.226) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 18 Aug 2020 14:29:36 +0800 Subject: Re: [PATCH] ACPI/IORT: Drop the unused @ops of iort_add_device_replay() To: Hanjun Guo , , CC: , , , References: <20200817105946.1511-1-yuzenghui@huawei.com> <8b15f022-8fb9-aa5c-fcd8-f92d4878a0a3@huawei.com> From: Zenghui Yu Message-ID: Date: Tue, 18 Aug 2020 14:29:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <8b15f022-8fb9-aa5c-fcd8-f92d4878a0a3@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.185.226] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/18 11:49, Hanjun Guo wrote: > On 2020/8/17 18:59, Zenghui Yu wrote: >> Since commit d2e1a003af56 ("ACPI/IORT: Don't call iommu_ops->add_device >> directly"), we use the IOMMU core API to replace a direct invoke of the >> specified callback. The parameter @ops has therefore became unused. Let's >> drop it. >> >> Signed-off-by: Zenghui Yu >> --- >>   drivers/acpi/arm64/iort.c | 8 +++----- >>   1 file changed, 3 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c >> index ec782e4a0fe4..a0ece0e201b2 100644 >> --- a/drivers/acpi/arm64/iort.c >> +++ b/drivers/acpi/arm64/iort.c >> @@ -811,8 +811,7 @@ static inline const struct iommu_ops >> *iort_fwspec_iommu_ops(struct device *dev) >>       return (fwspec && fwspec->ops) ? fwspec->ops : NULL; >>   } >> -static inline int iort_add_device_replay(const struct iommu_ops *ops, >> -                     struct device *dev) >> +static inline int iort_add_device_replay(struct device *dev) >>   { >>       int err = 0; >> @@ -1072,7 +1071,7 @@ const struct iommu_ops >> *iort_iommu_configure_id(struct device *dev, >>        */ >>       if (!err) { >>           ops = iort_fwspec_iommu_ops(dev); >> -        err = iort_add_device_replay(ops, dev); >> +        err = iort_add_device_replay(dev); >>       } >>       /* Ignore all other errors apart from EPROBE_DEFER */ >> @@ -1089,8 +1088,7 @@ const struct iommu_ops >> *iort_iommu_configure_id(struct device *dev, >>   #else >>   static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct >> device *dev) >>   { return NULL; } >> -static inline int iort_add_device_replay(const struct iommu_ops *ops, >> -                     struct device *dev) >> +static inline int iort_add_device_replay(struct device *dev) > > inline functions iort_fwspec_iommu_ops() and iort_add_device_replay() > are not needed anymore after commit 8212688600ed ("ACPI/IORT: Fix build > error when IOMMU_SUPPORT is disabled"), could you please add another > patch to remove them as well? Sure, I will remove them in v2. Thanks for the reminder. Zenghui