oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest-next 5/9] arch/x86/include/asm/pci.h:108:20: error: redefinition of 'pci_disable_early'
@ 2023-03-16  2:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-16  2:13 UTC (permalink / raw)
  To: Alexander Shishkin; +Cc: oe-kbuild-all, Kuppuswamy Sathyanarayanan

tree:   https://github.com/intel/tdx.git guest-next
head:   2e1127685f89b30a441346a6cb731e2a54013e7c
commit: 50e3da113c473c65e33a73bac4d8d47f6654ffc7 [5/9] Merge remote-tracking branch 'origin/guest-hardening-disable-features' into guest-next
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20230316/202303161057.zO7nRFCp-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/50e3da113c473c65e33a73bac4d8d47f6654ffc7
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-next
        git checkout 50e3da113c473c65e33a73bac4d8d47f6654ffc7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/mtrr/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303161057.zO7nRFCp-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/pci.h:1967,
                    from arch/x86/kernel/cpu/mtrr/mtrr.c:44:
>> arch/x86/include/asm/pci.h:108:20: error: redefinition of 'pci_disable_early'
     108 | static inline void pci_disable_early(void) { }
         |                    ^~~~~~~~~~~~~~~~~
   arch/x86/include/asm/pci.h:100:20: note: previous definition of 'pci_disable_early' with type 'void(void)'
     100 | static inline void pci_disable_early(void) { }
         |                    ^~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci.h:109:20: error: redefinition of 'pci_disable_mmconf'
     109 | static inline void pci_disable_mmconf(void) { }
         |                    ^~~~~~~~~~~~~~~~~~
   arch/x86/include/asm/pci.h:101:20: note: previous definition of 'pci_disable_mmconf' with type 'void(void)'
     101 | static inline void pci_disable_mmconf(void) { }
         |                    ^~~~~~~~~~~~~~~~~~


vim +/pci_disable_early +108 arch/x86/include/asm/pci.h

f3e6f164c23898 include/asm-x86/pci.h      Greg Kroah-Hartman         2007-10-12  103  
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30  104  #ifdef CONFIG_PCI
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30  105  void pci_disable_early(void);
276648eb824909 arch/x86/include/asm/pci.h Kuppuswamy Sathyanarayanan 2021-11-10  106  void pci_disable_mmconf(void);
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30  107  #else
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30 @108  static inline void pci_disable_early(void) { }
276648eb824909 arch/x86/include/asm/pci.h Kuppuswamy Sathyanarayanan 2021-11-10 @109  static inline void pci_disable_mmconf(void) { }
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30  110  #endif
236191ab4f4677 arch/x86/include/asm/pci.h Andi Kleen                 2021-06-30  111  

:::::: The code at line 108 was first introduced by commit
:::::: 236191ab4f46778b57e021b6efe07f08b0aa517d x86/tdx: Disable early PCI in TDX

:::::: TO: Andi Kleen <ak@linux.intel.com>
:::::: CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>

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

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

only message in thread, other threads:[~2023-03-16  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16  2:13 [intel-tdx:guest-next 5/9] arch/x86/include/asm/pci.h:108:20: error: redefinition of 'pci_disable_early' 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;
as well as URLs for NNTP newsgroup(s).