oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:kvm-upstream-workaround 306/432] arch/x86/include/asm/cpu.h:74:20: error: conflicting types for 'tsx_ctrl_clear'
@ 2023-03-10 13:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-10 13:59 UTC (permalink / raw)
  To: Isaku Yamahata; +Cc: llvm, oe-kbuild-all, Chenyi Qiang

tree:   https://github.com/intel/tdx.git kvm-upstream-workaround
head:   b4a08c4cd3ed29e3977509b24adc2c59e39825c1
commit: ab8aab774d78dd59a15a665bbd8d549b367e280d [306/432] [REVERTME] x86/cpu/tsx: Add helper functions to save/restore IA32_TSX_CTRL MSR
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20230310/202303102105.GQe7NH8s-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        # https://github.com/intel/tdx/commit/ab8aab774d78dd59a15a665bbd8d549b367e280d
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx kvm-upstream-workaround
        git checkout ab8aab774d78dd59a15a665bbd8d549b367e280d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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/202303102105.GQe7NH8s-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/lib/cpu.c:4:
>> arch/x86/include/asm/cpu.h:74:20: error: conflicting types for 'tsx_ctrl_clear'
   static inline void tsx_ctrl_clear(u64 tsx_ctrl) {}
                      ^
   arch/x86/include/asm/cpu.h:73:19: note: previous definition is here
   static inline u64 tsx_ctrl_clear(void) { return 0; }
                     ^
   1 error generated.


vim +/tsx_ctrl_clear +74 arch/x86/include/asm/cpu.h

    72	
    73	static inline u64 tsx_ctrl_clear(void) { return 0; }
  > 74	static inline void tsx_ctrl_clear(u64 tsx_ctrl) {}
    75	

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 13:59 [intel-tdx:kvm-upstream-workaround 306/432] arch/x86/include/asm/cpu.h:74:20: error: conflicting types for 'tsx_ctrl_clear' 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).