powerpc/pseries/iommu: Define spapr_tce_table_group_ops only with CONFIG_IOMMU_API
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Thu, 4 Jul 2024 10:22:37 +0000 (10:22 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2024 11:54:57 +0000 (21:54 +1000)
commitaf199e6ca29c77fb8fea9a78f18dfb165af37cd7
treee747549d2e7f6f268893c6125916070f6a23dddb
parent17c743b9da9e0d073ff19fd5313f521744514939
powerpc/pseries/iommu: Define spapr_tce_table_group_ops only with CONFIG_IOMMU_API

The patch fixes the below warning:
  arch/powerpc/platforms/pseries/iommu.c:1824:37: warning:
  'spapr_tce_table_group_ops' defined but not used

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407020357.Hz8kQkKf-lkp@intel.com/
Fixes: b09c031d9433 ("powerpc/iommu: Move pSeries specific functions to pseries/iommu.c")
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/172008854222.784.13666247605789409729.stgit@linux.ibm.com
arch/powerpc/platforms/pseries/iommu.c