* [intel-tdx:guest-hardening-rebased 36/36] arch/x86/include/asm/paravirt.h:119:20: warning: conflicting types for 'wrmsrl'; have 'void(unsigned int, u64)' {aka 'void(unsigned int, long long unsigned int)'}
@ 2024-04-04 12:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-04 12:25 UTC (permalink / raw
To: Kuppuswamy Sathyanarayanan; +Cc: oe-kbuild-all
tree: https://github.com/intel/tdx.git guest-hardening-rebased
head: 4d356858e22b5daf59ef3f38b776ed0f63ca70e0
commit: 4d356858e22b5daf59ef3f38b776ed0f63ca70e0 [36/36] x86/paravirt: Explicitly include msr.h
config: x86_64-randconfig-101-20240404 (https://download.01.org/0day-ci/archive/20240404/202404042026.V10rMA4F-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404042026.V10rMA4F-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/202404042026.V10rMA4F-lkp@intel.com/
All warnings (new ones prefixed by >>):
make[6]: *** No rule to make target 'tools/include/linux/panic.h', needed by 'tools/objtool/libsubcmd/parse-options.o'. Stop.
make[5]: *** [Makefile:80: tools/objtool/libsubcmd/libsubcmd-in.o] Error 2
make[4]: *** [Makefile:82: tools/objtool/libsubcmd/libsubcmd.a] Error 2
make[3]: *** [Makefile:73: objtool] Error 2
make[2]: *** [Makefile:1358: tools/objtool] Error 2
In file included from include/linux/mem_encrypt.h:17,
from arch/x86/include/asm/processor-flags.h:6,
from arch/x86/include/asm/irqflags.h:5,
from include/linux/irqflags.h:18,
from include/linux/spinlock.h:59,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from include/linux/crypto.h:15,
from arch/x86/kernel/asm-offsets.c:9:
arch/x86/include/asm/mem_encrypt.h:112:27: error: redefinition of 'mem_encrypt_setup_arch'
112 | static inline void __init mem_encrypt_setup_arch(void) { }
| ^~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/mem_encrypt.h:26:27: note: previous definition of 'mem_encrypt_setup_arch' with type 'void(void)'
26 | static inline void __init mem_encrypt_setup_arch(void) { }
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/paravirt.h:8,
from arch/x86/include/asm/irqflags.h:60:
arch/x86/include/asm/msr.h: In function 'wrmsrl_safe':
arch/x86/include/asm/msr.h:320:16: error: implicit declaration of function 'wrmsr_safe'; did you mean 'wrmsrl_safe'? [-Werror=implicit-function-declaration]
320 | return wrmsr_safe(msr, (u32)val, (u32)(val >> 32));
| ^~~~~~~~~~
| wrmsrl_safe
arch/x86/include/asm/msr.h: In function 'rdmsr_on_cpu':
arch/x86/include/asm/msr.h:344:9: error: implicit declaration of function 'rdmsr' [-Werror=implicit-function-declaration]
344 | rdmsr(msr_no, *l, *h);
| ^~~~~
arch/x86/include/asm/msr.h: In function 'wrmsr_on_cpu':
arch/x86/include/asm/msr.h:349:9: error: implicit declaration of function 'wrmsr'; did you mean 'wrmsrns'? [-Werror=implicit-function-declaration]
349 | wrmsr(msr_no, l, h);
| ^~~~~
| wrmsrns
arch/x86/include/asm/msr.h: In function 'rdmsrl_on_cpu':
arch/x86/include/asm/msr.h:354:9: error: implicit declaration of function 'rdmsrl' [-Werror=implicit-function-declaration]
354 | rdmsrl(msr_no, *q);
| ^~~~~~
arch/x86/include/asm/msr.h: In function 'wrmsrl_on_cpu':
arch/x86/include/asm/msr.h:359:9: error: implicit declaration of function 'wrmsrl'; did you mean 'wrmsrns'? [-Werror=implicit-function-declaration]
359 | wrmsrl(msr_no, q);
| ^~~~~~
| wrmsrns
arch/x86/include/asm/msr.h: In function 'rdmsr_safe_on_cpu':
arch/x86/include/asm/msr.h:375:16: error: implicit declaration of function 'rdmsr_safe'; did you mean 'wrmsrl_safe'? [-Werror=implicit-function-declaration]
375 | return rdmsr_safe(msr_no, l, h);
| ^~~~~~~~~~
| wrmsrl_safe
arch/x86/include/asm/msr.h: In function 'rdmsrl_safe_on_cpu':
arch/x86/include/asm/msr.h:383:16: error: implicit declaration of function 'rdmsrl_safe'; did you mean 'wrmsrl_safe'? [-Werror=implicit-function-declaration]
383 | return rdmsrl_safe(msr_no, q);
| ^~~~~~~~~~~
| wrmsrl_safe
arch/x86/include/asm/paravirt.h: At top level:
>> arch/x86/include/asm/paravirt.h:119:20: warning: conflicting types for 'wrmsrl'; have 'void(unsigned int, u64)' {aka 'void(unsigned int, long long unsigned int)'}
119 | static inline void wrmsrl(unsigned msr, u64 val)
| ^~~~~~
arch/x86/include/asm/paravirt.h:119:20: error: static declaration of 'wrmsrl' follows non-static declaration
arch/x86/include/asm/msr.h:359:9: note: previous implicit declaration of 'wrmsrl' with type 'void(unsigned int, u64)' {aka 'void(unsigned int, long long unsigned int)'}
359 | wrmsrl(msr_no, q);
| ^~~~~~
arch/x86/include/asm/paravirt.h:249:19: error: static declaration of 'rdmsrl_safe' follows non-static declaration
249 | static inline int rdmsrl_safe(unsigned msr, unsigned long long *p)
| ^~~~~~~~~~~
arch/x86/include/asm/msr.h:383:16: note: previous implicit declaration of 'rdmsrl_safe' with type 'int()'
383 | return rdmsrl_safe(msr_no, q);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1197: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +119 arch/x86/include/asm/paravirt.h
5288dfd167c4a7 Andi Kleen 2021-07-30 118
5288dfd167c4a7 Andi Kleen 2021-07-30 @119 static inline void wrmsrl(unsigned msr, u64 val)
5288dfd167c4a7 Andi Kleen 2021-07-30 120 {
5288dfd167c4a7 Andi Kleen 2021-07-30 121 paravirt_write_msr(msr, (u32)val, (u32)(val>>32));
5288dfd167c4a7 Andi Kleen 2021-07-30 122 }
5288dfd167c4a7 Andi Kleen 2021-07-30 123
:::::: The code at line 119 was first introduced by commit
:::::: 5288dfd167c4a73344f9d7b617b4902284667818 x86/tdx/paravirt: Move wrmsrl outside PARAVIRT_XXL
:::::: 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/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-04 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 12:25 [intel-tdx:guest-hardening-rebased 36/36] arch/x86/include/asm/paravirt.h:119:20: warning: conflicting types for 'wrmsrl'; have 'void(unsigned int, u64)' {aka 'void(unsigned int, long long unsigned int)'} 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 read-only IMAP folder(s) and NNTP newsgroup(s).