Re: [PATCH] iommu/renesas: fix unused-function warning

2020-05-13 Thread Joerg Roedel
On Sat, May 09, 2020 at 12:02:16AM +0200, Arnd Bergmann wrote: > gcc warns because the only reference to ipmmu_find_group > is inside of an #ifdef: > > drivers/iommu/ipmmu-vmsa.c:878:28: error: 'ipmmu_find_group' defined but not > used [-Werror=unused-function] > > Change the #ifdef to an

Re: [PATCH] iommu/renesas: fix unused-function warning

2020-05-12 Thread Simon Horman
On Sat, May 09, 2020 at 12:02:16AM +0200, Arnd Bergmann wrote: > gcc warns because the only reference to ipmmu_find_group > is inside of an #ifdef: > > drivers/iommu/ipmmu-vmsa.c:878:28: error: 'ipmmu_find_group' defined but not > used [-Werror=unused-function] > > Change the #ifdef to an

[PATCH] iommu/renesas: fix unused-function warning

2020-05-08 Thread Arnd Bergmann
gcc warns because the only reference to ipmmu_find_group is inside of an #ifdef: drivers/iommu/ipmmu-vmsa.c:878:28: error: 'ipmmu_find_group' defined but not used [-Werror=unused-function] Change the #ifdef to an equivalent IS_ENABLED(). Fixes: 6580c8a78424 ("iommu/renesas: Convert to