All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Vasant Hegde <vasant.hegde@amd.com>
Subject: [jgunthorpe:for-vasant 2/10] include/linux/iommu.h:1103:1: error: declaration of anonymous struct must be a definition
Date: Sat, 5 Oct 2024 19:13:53 +0800	[thread overview]
Message-ID: <202410051943.59KUI762-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-10-05 11:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202410051943.59KUI762-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jgg@ziepe.ca \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vasant.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.