drivers/iommu/hyperv/hv-iommu-guest.c:25:21: sparse: sparse: symbol 'hv_iommu_device' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux.git hyper-v head: 87c5e5ae83492d951877eb5711dc03f2314d2695 commit: 2690d4156b51f7e9fe874dd480fc928594615552 [4/5] iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest config: x86_64-randconfig-r2301-20261009 (https://download.01.org/0day-ci/archive/20261009/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) rustc: rustc 1.96.0 (ac68faa20 2026-05-25) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261009/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/iommu/hyperv/hv-iommu-guest.c:25:21: sparse: sparse: symbol 'hv_iommu_device' was not declared. Should it be static?
vim +/hv_iommu_device +25 drivers/iommu/hyperv/hv-iommu-guest.c
24
> 25 struct hv_iommu_dev *hv_iommu_device;
26 --
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki