Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2804289pxa; Mon, 17 Aug 2020 20:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykt1Ewhe4jBUm+Ok81Kg2eqdxM+lrHKGld3gMDfqZu+oMgkHr8RqsL5zHCjSpfUdFz6rwb X-Received: by 2002:a17:906:5f8f:: with SMTP id a15mr19165567eju.291.1597722757768; Mon, 17 Aug 2020 20:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597722757; cv=none; d=google.com; s=arc-20160816; b=C7fg8hyaiMYqYA9X/dsut7ueznm7cIgdMDABJcmUzkly8MQVhWS2oB+Oj+Pzb1EGzv rDgX4qca9OnheKpamcQosj+hSi7CNXoRg6ZC9LYlhJmrfRLZsKk8kiri+TgqK8PiMiN7 WYcBW/Y2c/4AeBX9Wh3qbp5+U5T+dCyPZqNg4Gbled4iho+S7yciBNM3b9uspNfuepfZ xTHvn8GMZf+muw5F0sybH8axxythI18O/spZEHVH9sO1KUHRF4NHqEYF9Sx4cUOXCygj TlYt6NNgl5BNyZuNiPTZrR691ng+/m3MvgXYY2iaGjGcudOIqYb7QS6f2C8JlNkMtO7q WeFA== 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=d6DqJ0Ue+0htq5EHDIoLRZnDzMMiZCUSlRcaEDRdw/U=; b=dk9B5J+KPwisDKEVFIbgQoTBGQqU1psqhX1IruiMVE+NphhcBAPXuN0GKdCzhsVFOw /7UFHjyc6RoYPWA/mobLILEOGmmeCPMNAln1dSDrIjTfGsi/f1pNEd6d+6njyQsBzQLk Yf/fVn3gx4KxSBeA79sUpWYmrlEHVMkQG7Rvni+hJ+TX/jm4e6rW7yrYSBdMqPXXVssL HWkU6ip0F+bryWP1XZvmx5XXqxx33MAySy9Dud10O6v5Lb5GYT9iR8WagmDwYYS7OAUI Mdzy2HakMq04Q4ne6RXWO4NvJsS4dQEKyZ4HG5hptsSceVNO8dA+v/Vl1XqjMAA1BaqT V5/A== 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 mj19si12171034ejb.291.2020.08.17.20.52.14; Mon, 17 Aug 2020 20:52:37 -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 S1726422AbgHRDuC (ORCPT + 99 others); Mon, 17 Aug 2020 23:50:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9827 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726302AbgHRDuC (ORCPT ); Mon, 17 Aug 2020 23:50:02 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 837AC39DF0EADA83333A; Tue, 18 Aug 2020 11:50:00 +0800 (CST) Received: from [127.0.0.1] (10.174.179.33) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Tue, 18 Aug 2020 11:49:53 +0800 Subject: Re: [PATCH] ACPI/IORT: Drop the unused @ops of iort_add_device_replay() To: Zenghui Yu , , CC: , , , References: <20200817105946.1511-1-yuzenghui@huawei.com> From: Hanjun Guo Message-ID: <8b15f022-8fb9-aa5c-fcd8-f92d4878a0a3@huawei.com> Date: Tue, 18 Aug 2020 11:49:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200817105946.1511-1-yuzenghui@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.33] 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/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? Thanks Hanjun