* [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()
@ 2020-05-09 9:34 Zenghui Yu
2020-05-09 9:56 ` Hanjun Guo
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Zenghui Yu @ 2020-05-09 9:34 UTC (permalink / raw)
To: lorenzo.pieralisi, guohanjun, sudeep.holla
Cc: rjw, lenb, linux-acpi, linux-arm-kernel, linux-kernel,
wanghaibin.wang, Zenghui Yu
Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
IOMMUs"), __get_pci_rid() has become actually unused and can be removed.
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
drivers/acpi/arm64/iort.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 7d04424189df..ec94dbb60c7a 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -789,15 +789,6 @@ void acpi_configure_pmsi_domain(struct device *dev)
dev_set_msi_domain(dev, msi_domain);
}
-static int __maybe_unused __get_pci_rid(struct pci_dev *pdev, u16 alias,
- void *data)
-{
- u32 *rid = data;
-
- *rid = alias;
- return 0;
-}
-
#ifdef CONFIG_IOMMU_API
static struct acpi_iort_node *iort_get_msi_resv_iommu(struct device *dev)
{
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()
2020-05-09 9:34 [PATCH] ACPI/IORT: Remove the unused __get_pci_rid() Zenghui Yu
@ 2020-05-09 9:56 ` Hanjun Guo
2020-05-25 4:00 ` Zenghui Yu
2020-05-26 13:07 ` Lorenzo Pieralisi
2020-05-26 20:45 ` Will Deacon
2 siblings, 1 reply; 5+ messages in thread
From: Hanjun Guo @ 2020-05-09 9:56 UTC (permalink / raw)
To: Zenghui Yu, lorenzo.pieralisi, sudeep.holla
Cc: rjw, lenb, linux-acpi, linux-arm-kernel, linux-kernel, wanghaibin.wang
On 2020/5/9 17:34, Zenghui Yu wrote:
> Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
> IOMMUs"), __get_pci_rid() has become actually unused and can be removed.
>
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Looks good to me,
Acked-by: Hanjun Guo <guohanjun@huawei.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()
2020-05-09 9:56 ` Hanjun Guo
@ 2020-05-25 4:00 ` Zenghui Yu
0 siblings, 0 replies; 5+ messages in thread
From: Zenghui Yu @ 2020-05-25 4:00 UTC (permalink / raw)
To: Hanjun Guo, lorenzo.pieralisi, sudeep.holla, Will Deacon
Cc: rjw, lenb, linux-acpi, linux-arm-kernel, linux-kernel, wanghaibin.wang
On 2020/5/9 17:56, Hanjun Guo wrote:
> On 2020/5/9 17:34, Zenghui Yu wrote:
>> Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
>> IOMMUs"), __get_pci_rid() has become actually unused and can be removed.
>>
>> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
>
> Looks good to me,
>
> Acked-by: Hanjun Guo <guohanjun@huawei.com>
Hi Will,
Could you please take this patch [*] into v5.8 (if it's not too late)?
I've tried and it can be applied to for-next/acpi cleanly.
[*]
https://lore.kernel.org/linux-acpi/20200509093430.1983-1-yuzenghui@huawei.com/
Thanks,
Zenghui
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()
2020-05-09 9:34 [PATCH] ACPI/IORT: Remove the unused __get_pci_rid() Zenghui Yu
2020-05-09 9:56 ` Hanjun Guo
@ 2020-05-26 13:07 ` Lorenzo Pieralisi
2020-05-26 20:45 ` Will Deacon
2 siblings, 0 replies; 5+ messages in thread
From: Lorenzo Pieralisi @ 2020-05-26 13:07 UTC (permalink / raw)
To: Zenghui Yu, will
Cc: guohanjun, sudeep.holla, rjw, lenb, linux-acpi, linux-arm-kernel,
linux-kernel, wanghaibin.wang
On Sat, May 09, 2020 at 05:34:30PM +0800, Zenghui Yu wrote:
> Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
> IOMMUs"), __get_pci_rid() has become actually unused and can be removed.
>
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
> ---
> drivers/acpi/arm64/iort.c | 9 ---------
> 1 file changed, 9 deletions(-)
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
If we miss v5.8 (which I think it is likely, even though this patch is
just removing dead code so it is safe at this stage) I will resend it
for v5.9 - not a problem.
Lorenzo
> diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
> index 7d04424189df..ec94dbb60c7a 100644
> --- a/drivers/acpi/arm64/iort.c
> +++ b/drivers/acpi/arm64/iort.c
> @@ -789,15 +789,6 @@ void acpi_configure_pmsi_domain(struct device *dev)
> dev_set_msi_domain(dev, msi_domain);
> }
>
> -static int __maybe_unused __get_pci_rid(struct pci_dev *pdev, u16 alias,
> - void *data)
> -{
> - u32 *rid = data;
> -
> - *rid = alias;
> - return 0;
> -}
> -
> #ifdef CONFIG_IOMMU_API
> static struct acpi_iort_node *iort_get_msi_resv_iommu(struct device *dev)
> {
> --
> 2.19.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()
2020-05-09 9:34 [PATCH] ACPI/IORT: Remove the unused __get_pci_rid() Zenghui Yu
2020-05-09 9:56 ` Hanjun Guo
2020-05-26 13:07 ` Lorenzo Pieralisi
@ 2020-05-26 20:45 ` Will Deacon
2 siblings, 0 replies; 5+ messages in thread
From: Will Deacon @ 2020-05-26 20:45 UTC (permalink / raw)
To: sudeep.holla, guohanjun, lorenzo.pieralisi, Zenghui Yu
Cc: catalin.marinas, Will Deacon, linux-kernel, linux-acpi,
wanghaibin.wang, linux-arm-kernel, rjw, lenb
On Sat, 9 May 2020 17:34:30 +0800, Zenghui Yu wrote:
> Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
> IOMMUs"), __get_pci_rid() has become actually unused and can be removed.
Applied to arm64 (for-next/acpi), thanks!
[1/1] ACPI/IORT: Remove the unused __get_pci_rid()
https://git.kernel.org/arm64/c/09cda9a71350
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-26 20:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 9:34 [PATCH] ACPI/IORT: Remove the unused __get_pci_rid() Zenghui Yu
2020-05-09 9:56 ` Hanjun Guo
2020-05-25 4:00 ` Zenghui Yu
2020-05-26 13:07 ` Lorenzo Pieralisi
2020-05-26 20:45 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).