* [PATCH] iommu/ipmmu-vmsa: Drop of_match_ptr()
@ 2022-09-07 16:12 Robin Murphy
2022-09-08 12:41 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Robin Murphy @ 2022-09-07 16:12 UTC (permalink / raw)
To: joro; +Cc: will, iommu
Drop of_match_ptr() to avoid an unused variable warning when
compile-testing with CONFIG_OF=n. The driver is not actually usable in
that configuration, so there's no point trying to optimise out data.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
fixes "iommu/ipmmu-vmsa: Clean up bus_set_iommu()"
drivers/iommu/ipmmu-vmsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index 3b30c0752274..20f6a620a127 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -1157,7 +1157,7 @@ static const struct dev_pm_ops ipmmu_pm = {
static struct platform_driver ipmmu_driver = {
.driver = {
.name = "ipmmu-vmsa",
- .of_match_table = of_match_ptr(ipmmu_of_ids),
+ .of_match_table = ipmmu_of_ids,
.pm = DEV_PM_OPS,
},
.probe = ipmmu_probe,
--
2.36.1.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iommu/ipmmu-vmsa: Drop of_match_ptr()
2022-09-07 16:12 [PATCH] iommu/ipmmu-vmsa: Drop of_match_ptr() Robin Murphy
@ 2022-09-08 12:41 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2022-09-08 12:41 UTC (permalink / raw)
To: Robin Murphy; +Cc: will, iommu
On Wed, Sep 07, 2022 at 05:12:12PM +0100, Robin Murphy wrote:
> Drop of_match_ptr() to avoid an unused variable warning when
> compile-testing with CONFIG_OF=n. The driver is not actually usable in
> that configuration, so there's no point trying to optimise out data.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>
> ---
>
> fixes "iommu/ipmmu-vmsa: Clean up bus_set_iommu()"
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-08 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 16:12 [PATCH] iommu/ipmmu-vmsa: Drop of_match_ptr() Robin Murphy
2022-09-08 12:41 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox