All of lore.kernel.org
 help / color / mirror / Atom feed
* [jgunthorpe:for-vasant 2/10] include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition
@ 2024-10-05 11:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-05 11:13 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: llvm, oe-kbuild-all, Vasant Hegde

tree:   https://github.com/jgunthorpe/linux for-vasant
head:   8aa0df6ce0d35430baeac4ee5e0ea77f82cf2ead
commit: 9d7523756e213acff67f3b9264211becfbb5b7bb [2/10] iommu: Introduce iommu_paging_domain_alloc_flags()
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20241005/202410051943.59KUI762-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241005/202410051943.59KUI762-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/202410051943.59KUI762-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from kernel/fork.c:104:
>> include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition
    1103 | struct inline iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
         | ^
>> include/linux/iommu.h:1103:1: warning: declaration does not declare anything [-Wmissing-declarations]
>> include/linux/iommu.h:1478:48: warning: declaration of 'struct msi_desc' will not be visible outside of this function [-Wvisibility]
    1478 | static inline int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr)
         |                                                ^
   include/linux/iommu.h:1483:53: warning: declaration of 'struct msi_desc' will not be visible outside of this function [-Wvisibility]
    1483 | static inline void iommu_dma_compose_msi_msg(struct msi_desc *desc, struct msi_msg *msg)
         |                                                     ^
   3 warnings and 1 error generated.
--
   In file included from arch/x86/kernel/pci-dma.c:4:
>> include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition
    1103 | struct inline iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
         | ^
>> include/linux/iommu.h:1103:1: warning: declaration does not declare anything [-Wmissing-declarations]
>> include/linux/iommu.h:1478:48: warning: declaration of 'struct msi_desc' will not be visible outside of this function [-Wvisibility]
    1478 | static inline int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr)
         |                                                ^
   include/linux/iommu.h:1483:53: warning: declaration of 'struct msi_desc' will not be visible outside of this function [-Wvisibility]
    1483 | static inline void iommu_dma_compose_msi_msg(struct msi_desc *desc, struct msi_msg *msg)
         |                                                     ^
>> arch/x86/kernel/pci-dma.c:162:4: error: call to undeclared function 'iommu_set_default_passthrough'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     162 |                         iommu_set_default_passthrough(true);
         |                         ^
>> arch/x86/kernel/pci-dma.c:164:4: error: call to undeclared function 'iommu_set_default_translated'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     164 |                         iommu_set_default_translated(true);
         |                         ^
   3 warnings and 3 errors generated.
--
   In file included from drivers/base/platform.c:33:
>> include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition
    1103 | struct inline iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
         | ^
>> include/linux/iommu.h:1103:1: warning: declaration does not declare anything [-Wmissing-declarations]
>> drivers/base/platform.c:1457:8: error: call to undeclared function 'iommu_device_use_default_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1457 |         ret = iommu_device_use_default_domain(dev);
         |               ^
>> drivers/base/platform.c:1469:3: error: call to undeclared function 'iommu_device_unuse_default_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1469 |                 iommu_device_unuse_default_domain(dev);
         |                 ^
   1 warning and 3 errors generated.


vim +1103 include/linux/iommu.h

  1102	
> 1103	struct inline iommu_domain *iommu_paging_domain_alloc_flags(struct device *dev,
  1104								    unsigned int flags)
  1105	{
  1106		return ERR_PTR(-ENODEV);
  1107	}
  1108	

-- 
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-10-05 11:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 11:13 [jgunthorpe:for-vasant 2/10] include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.