Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2875538pxa; Mon, 17 Aug 2020 23:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxudFFT87nSXzo9rvbGkgOtJUbn6lHzOE4nzEt8/4Bh2HCpKb+VH+xFUQJQRe4noVMylcrt X-Received: by 2002:a17:906:2c43:: with SMTP id f3mr18129977ejh.502.1597732663452; Mon, 17 Aug 2020 23:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597732663; cv=none; d=google.com; s=arc-20160816; b=iOMiEODpiXtN3ecs0P8eruxSsTuqc5ormxjNy5VawrVdpeh9XvM4CVp0V0nUqn0owm L6z9aCT+Tn1v6JHOh7w9U1iLKE0KQuesbCUuvUf3g2tZbt0T/iq5r79yTxgLxUAPnGpE zx4YdtJHY8693HrCZ+n8TR6bOWzz5Gl9qcBf18cjyA6GOWEKJK1q5OBpKOHRGMn8dejW WmkrfVCnXYuHIY1IDl7xtKJP8Go5Bsoty3YHEacSXo8tZr1fxEdzG7BnjUTtvj1kOp8X mhc1nhumwZ5ZTs21sdDemmEwYNEk6STARdbrnbWCXJwV/okVqNODqVYTHkQJNRw1hCKR LOEg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fcbGXDrX+nqVYqeopKLTcGJBQH2huRvYPtAToveLhYM=; b=jRD2ghw81NZhuhuuWMTnLtQkkHIpdB7rRNz7etshoMwp4JdoSpJSA6AD941zBKGICK wXt4joKWTzPQshlxvoJGzyN0BcP1Hx46w7FlBCfuXoOcwGErplLmLUbcK+2RoCoAUjJX O8j41vof7XufxUlifcvHGlBANk+SbTjw1TkC/n+brpToJLskKXqTsCxMU0sSwamXwkz0 7adgrrBVBj6iMfFRZ0i7dpmPt2SU9aqQbas94of04I+pGyknEqErPzQFIilNamot9Yx5 AtsqyMBKAu3T0CFQAVfOTe8MBrjzQ8jYg10cMjUs+J7CS1/f0bSZ2JuGosqWKhctb863 SC6A== 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 dc15si12470366ejb.374.2020.08.17.23.37.18; Mon, 17 Aug 2020 23:37:43 -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 S1726581AbgHRGgq (ORCPT + 99 others); Tue, 18 Aug 2020 02:36:46 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35320 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726228AbgHRGgq (ORCPT ); Tue, 18 Aug 2020 02:36:46 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A71241D36622A13AF28A; Tue, 18 Aug 2020 14:36:43 +0800 (CST) Received: from DESKTOP-8RFUVS3.china.huawei.com (10.174.185.226) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 18 Aug 2020 14:36:35 +0800 From: Zenghui Yu To: , , CC: , , , , Zenghui Yu Subject: [PATCH v2 1/2] ACPI/IORT: Drop the unused @ops of iort_add_device_replay() Date: Tue, 18 Aug 2020 14:36:24 +0800 Message-ID: <20200818063625.980-2-yuzenghui@huawei.com> X-Mailer: git-send-email 2.23.0.windows.1 In-Reply-To: <20200818063625.980-1-yuzenghui@huawei.com> References: <20200818063625.980-1-yuzenghui@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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) { return 0; } int iort_iommu_msi_get_resv_regions(struct device *dev, struct list_head *head) { return 0; } -- 2.19.1