public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [leon-rdma:dma-static-calls-v3 2/2] kernel/dma/mapping.c:831:21: error: call to undeclared function 'dma_is_default_iommu'; ISO C99 and later do not support implicit function declarations
@ 2024-07-18 11:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-18 11:43 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git dma-static-calls-v3
head:   7eb55aeea773a5827b4c6ab06f77beed71254e44
commit: 7eb55aeea773a5827b4c6ab06f77beed71254e44 [2/2] dma: add IOMMU static calls with clear default ops
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240718/202407181924.HKbjSnqk-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407181924.HKbjSnqk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407181924.HKbjSnqk-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/dma/mapping.c:831:21: error: call to undeclared function 'dma_is_default_iommu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     831 |         if (WARN_ON(ops && dma_is_default_iommu(dev)))
         |                            ^
   1 error generated.


vim +/dma_is_default_iommu +831 kernel/dma/mapping.c

   826	
   827	static int dma_supported(struct device *dev, u64 mask)
   828	{
   829		const struct dma_map_ops *ops = get_dma_ops(dev);
   830	
 > 831		if (WARN_ON(ops && dma_is_default_iommu(dev)))
   832			return false;
   833		/*
   834		 * ->dma_supported sets the bypass flag, so we must always call
   835		 * into the method here unless the device is truly direct mapped.
   836		 */
   837		if (!ops)
   838			return dma_direct_supported(dev, mask);
   839		if (!ops->dma_supported)
   840			return 1;
   841		return ops->dma_supported(dev, mask);
   842	}
   843	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-18 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 11:43 [leon-rdma:dma-static-calls-v3 2/2] kernel/dma/mapping.c:831:21: error: call to undeclared function 'dma_is_default_iommu'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox