Re: [RFC PATCH] x86/pci-dma: add "any" keyword to swiotlb= kernel parameter

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi Aakarsh,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v7.2-rc6 next-20260805]
[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/Aakarsh-Jain/x86-pci-dma-add-any-keyword-to-swiotlb-kernel-parameter/20260805-183105
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20260708114244.246176-1-aakarsh.jain%40oss.qualcomm.com
patch subject: [RFC PATCH] x86/pci-dma: add "any" keyword to swiotlb= kernel parameter
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260806/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 12df34b8469b8095359de8c249cb1b2753fadeea)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/[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]/

All errors (new ones prefixed by >>):

>> kernel/dma/swiotlb.c:451:2: error: use of undeclared identifier 'flags'
     451 |         flags |= swiotlb_param_flags;
         |         ^~~~~
   1 error generated.


vim +/flags +451 kernel/dma/swiotlb.c

   426	
   427	/*
   428	 * Systems with larger DMA zones (those that don't support ISA) can
   429	 * initialize the swiotlb later using the slab allocator if needed.
   430	 * This should be just like above, but with some error catching.
   431	 */
   432	int swiotlb_init_late(size_t size, gfp_t gfp_mask,
   433			int (*remap)(void *tlb, unsigned long nslabs))
   434	{
   435		struct io_tlb_pool *mem = &io_tlb_default_mem.defpool;
   436		unsigned long nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE);
   437		unsigned int nareas;
   438		unsigned char *vstart = NULL;
   439		unsigned int order, area_order;
   440		bool retried = false;
   441		int rc = 0;
   442	
   443		if (io_tlb_default_mem.nslabs)
   444			return 0;
   445	
   446		if (swiotlb_force_disable)
   447			return 0;
   448	
   449		io_tlb_default_mem.force_bounce = swiotlb_force_bounce;
   450	
 > 451		flags |= swiotlb_param_flags;
   452	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.