Re: [PATCH v8 11/15] iommufd/viommu: Select vIOMMU operations before allocation

From: kernel test robot

Date: Thu Nov 05 2026 - 04:13:43 EST


Hi Aneesh,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4]

url: https://github.com/intel-lab-lkp/linux/commits/Aneesh-Kumar-K-V-Arm/PCI-TSM-Move-core-code-into-its-own-directory/20261104-214618
base: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
patch link: https://lore.kernel.org/r/20261104161632.3547423-12-aneesh.kumar%40kernel.org
patch subject: [PATCH v8 11/15] iommufd/viommu: Select vIOMMU operations before allocation
config: x86_64-buildonly-randconfig-1001-20261105 (https://download.01.org/0day-ci/archive/20261105/202611051602.nH0L0uqs-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261105/202611051602.nH0L0uqs-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611051602.nH0L0uqs-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/iommu/amd/iommufd.c:81:40: warning: 'amd_viommu_ops' defined but not used [-Wunused-const-variable=]
81 | static const struct iommufd_viommu_ops amd_viommu_ops = {
| ^~~~~~~~~~~~~~


vim +/amd_viommu_ops +81 drivers/iommu/amd/iommufd.c

757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 76
757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 77 /*
757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 78 * See include/linux/iommufd.h
757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 79 * struct iommufd_viommu_ops - vIOMMU specific operations
757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 80 */
757d2b1fdf5b7d6 Suravee Suthikulpanit 2026-01-15 @81 static const struct iommufd_viommu_ops amd_viommu_ops = {

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki