CC: [email protected] BCC: [email protected] CC: [email protected] TO: Ingo Molnar <[email protected]>
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe commit: 98059e2f050a3f6f7474f92ca847b02ec9fe9cb2 [1954/2579] headers/deps: x86/cpu: Optimize <asm/processor.h> dependencies :::::: branch date: 6 days ago :::::: commit date: 6 days ago config: x86_64-randconfig-s022-20220425 (https://download.01.org/0day-ci/archive/20220425/[email protected]/config) compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=98059e2f050a3f6f7474f92ca847b02ec9fe9cb2 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 98059e2f050a3f6f7474f92ca847b02ec9fe9cb2 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) arch/x86/kernel/cpu/common.c:1930:1: sparse: sparse: symbol 'fixed_percpu_data' redeclared with different type (different address spaces): arch/x86/kernel/cpu/common.c:1930:1: sparse: struct fixed_percpu_data [addressable] [noderef] [toplevel] __percpu fixed_percpu_data arch/x86/kernel/cpu/common.c: note: in included file: arch/x86/include/asm/processor_api.h:36:1: sparse: note: previously declared as: >> arch/x86/include/asm/processor_api.h:36:1: sparse: struct >> fixed_percpu_data extern [addressable] [toplevel] fixed_percpu_data arch/x86/kernel/cpu/common.c:221:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) arch/x86/kernel/cpu/common.c:222:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) arch/x86/kernel/cpu/common.c:223:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) arch/x86/kernel/cpu/common.c:224:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) arch/x86/kernel/cpu/common.c:225:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) arch/x86/kernel/cpu/common.c:226:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff) >> arch/x86/include/asm/processor_api.h:40:31: sparse: sparse: incorrect type >> in initializer (different address spaces) @@ expected void const >> [noderef] __percpu *__vpp_verify @@ got char ( * )[40] @@ arch/x86/include/asm/processor_api.h:40:31: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/include/asm/processor_api.h:40:31: sparse: got char ( * )[40] vim +36 arch/x86/include/asm/processor_api.h 98059e2f050a3f Ingo Molnar 2021-11-24 34 98059e2f050a3f Ingo Molnar 2021-11-24 35 DECLARE_PER_CPU_FIRST(struct fixed_percpu_data, fixed_percpu_data) __visible; 98059e2f050a3f Ingo Molnar 2021-11-24 @36 DECLARE_INIT_PER_CPU(fixed_percpu_data); 98059e2f050a3f Ingo Molnar 2021-11-24 37 98059e2f050a3f Ingo Molnar 2021-11-24 38 static inline unsigned long cpu_kernelmode_gs_base(int cpu) 98059e2f050a3f Ingo Molnar 2021-11-24 39 { 98059e2f050a3f Ingo Molnar 2021-11-24 @40 return (unsigned long)per_cpu(fixed_percpu_data.gs_base, cpu); 98059e2f050a3f Ingo Molnar 2021-11-24 41 } 98059e2f050a3f Ingo Molnar 2021-11-24 42 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
