Re: [PATCH] x86/pci-dma: swiotlb: Fix a regression since 5.19.0 about iommu=soft kernel parameter

From: kernel test robot

Date: Fri Feb 13 2026 - 09:51:59 EST


Hi Julien,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/master]
[also build test WARNING on tip/x86/core tip/auto-latest linus/master v6.19 next-20260212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Julien-ROBIN/x86-pci-dma-swiotlb-Fix-a-regression-since-5-19-0-about-iommu-soft-kernel-parameter/20260213-122547
base: tip/master
patch link: https://lore.kernel.org/r/16c95f65-17ee-4bbd-99b3-93406a7801c4%40free.fr
patch subject: [PATCH] x86/pci-dma: swiotlb: Fix a regression since 5.19.0 about iommu=soft kernel parameter
config: i386-randconfig-r132-20260213 (https://download.01.org/0day-ci/archive/20260213/202602132218.jy0N4aRs-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/20260213/202602132218.jy0N4aRs-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/202602132218.jy0N4aRs-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/pci-dma.c:37:5: sparse: sparse: symbol 'x86_soft_iommu_only' was not declared. Should it be static?

vim +/x86_soft_iommu_only +37 arch/x86/kernel/pci-dma.c

35
36 int no_iommu __read_mostly;
> 37 int x86_soft_iommu_only __read_mostly;
38 /* Set this to 1 if there is a HW IOMMU in the system */
39 int iommu_detected __read_mostly = 0;
40

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