All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:swiotlb-init-cleanup 8/11] arch/x86/include/asm/gart.h:56:2: error: void function 'gart_iommu_hole_init' should not return a value
@ 2022-02-15  1:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-15  1:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3566 bytes --]

tree:   git://git.infradead.org/users/hch/misc.git swiotlb-init-cleanup
head:   b0a4b60e2b05556a265441d07464d016e160ed50
commit: 12f2fe176ef701bc27dd2bf8061a5f178b547024 [8/11] x86: remove the IOMMU table infrastructure
config: i386-randconfig-a002-20220214 (https://download.01.org/0day-ci/archive/20220215/202202150933.VKTRTbyq-lkp(a)intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc swiotlb-init-cleanup
        git checkout 12f2fe176ef701bc27dd2bf8061a5f178b547024
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/setup.c:37:
>> arch/x86/include/asm/gart.h:56:2: error: void function 'gart_iommu_hole_init' should not return a value [-Wreturn-type]
           return -ENODEV;
           ^      ~~~~~~~
   1 error generated.
--
   In file included from arch/x86/kernel/pci-dma.c:15:
>> arch/x86/include/asm/gart.h:56:2: error: void function 'gart_iommu_hole_init' should not return a value [-Wreturn-type]
           return -ENODEV;
           ^      ~~~~~~~
>> arch/x86/kernel/pci-dma.c:86:2: error: implicit declaration of function 'detect_intel_iommu' [-Werror,-Wimplicit-function-declaration]
           detect_intel_iommu();
           ^
>> arch/x86/kernel/pci-dma.c:196:5: error: redefinition of 'pci_xen_swiotlb_init_late'
   int pci_xen_swiotlb_init_late(void)
       ^
   arch/x86/include/asm/xen/swiotlb-xen.h:8:19: note: previous definition is here
   static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; }
                     ^
   3 errors generated.


vim +/gart_iommu_hole_init +56 arch/x86/include/asm/gart.h

1d9b16d1690fe5 Joerg Roedel          2008-11-27  47  
1d9b16d1690fe5 Joerg Roedel          2008-11-27  48  static inline void early_gart_iommu_check(void)
1d9b16d1690fe5 Joerg Roedel          2008-11-27  49  {
1d9b16d1690fe5 Joerg Roedel          2008-11-27  50  }
1d9b16d1690fe5 Joerg Roedel          2008-11-27  51  static inline void gart_parse_options(char *options)
1d9b16d1690fe5 Joerg Roedel          2008-11-27  52  {
1d9b16d1690fe5 Joerg Roedel          2008-11-27  53  }
12f2fe176ef701 Christoph Hellwig     2022-02-14  54  static inline void gart_iommu_hole_init(void)
1d9b16d1690fe5 Joerg Roedel          2008-11-27  55  {
480125ba49ba62 Konrad Rzeszutek Wilk 2010-08-26 @56  	return -ENODEV;
1d9b16d1690fe5 Joerg Roedel          2008-11-27  57  }
1d9b16d1690fe5 Joerg Roedel          2008-11-27  58  #endif
1d9b16d1690fe5 Joerg Roedel          2008-11-27  59  

:::::: The code at line 56 was first introduced by commit
:::::: 480125ba49ba62be93beea37770f266846e077ab x86, iommu: Make all IOMMU's detection routines return a value.

:::::: TO: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
:::::: CC: H. Peter Anvin <hpa@linux.intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2022-02-15  1:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  1:29 [hch-misc:swiotlb-init-cleanup 8/11] arch/x86/include/asm/gart.h:56:2: error: void function 'gart_iommu_hole_init' should not return a value 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.