tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd76a7555127aa134a2a1113685da60b70553e6f commit: e31410969eb2ea5a4eb26d54616a6bba88cc0dbc [1474/1474] perf/x86/amd/uncore: Move discovery and registration config: x86_64-randconfig-121-20241118 (https://download.01.org/0day-ci/archive/20241119/202411191801.IpPPqnTz-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241119/202411191801.IpPPqnTz-lkp@i...)
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/202411191801.IpPPqnTz-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/x86/events/amd/uncore.c:601:10: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@
arch/x86/events/amd/uncore.c:601:10: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:601:10: sparse: got union amd_uncore_info * arch/x86/events/amd/uncore.c:730:10: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@ arch/x86/events/amd/uncore.c:730:10: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:730:10: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:847:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected union amd_uncore_info *[noderef] info @@ got union amd_uncore_info [noderef] __percpu * @@
arch/x86/events/amd/uncore.c:847:30: sparse: expected union amd_uncore_info *[noderef] info arch/x86/events/amd/uncore.c:847:30: sparse: got union amd_uncore_info [noderef] __percpu *
arch/x86/events/amd/uncore.c:881:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got union amd_uncore_info *[noderef] info @@
arch/x86/events/amd/uncore.c:881:43: sparse: expected void [noderef] __percpu *__pdata arch/x86/events/amd/uncore.c:881:43: sparse: got union amd_uncore_info *[noderef] info arch/x86/events/amd/uncore.c:904:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got union amd_uncore_info *[noderef] info @@ arch/x86/events/amd/uncore.c:904:35: sparse: expected void [noderef] __percpu *__pdata arch/x86/events/amd/uncore.c:904:35: sparse: got union amd_uncore_info *[noderef] info arch/x86/events/amd/uncore.c:358:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@ arch/x86/events/amd/uncore.c:358:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:358:39: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:358:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:358:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@ arch/x86/events/amd/uncore.c:358:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:358:39: sparse: got union amd_uncore_info *
arch/x86/events/amd/uncore.c:358:39: sparse: sparse: dereference of noderef expression
arch/x86/events/amd/uncore.c:601:10: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:365:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@ arch/x86/events/amd/uncore.c:365:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:365:39: sparse: got union amd_uncore_info * arch/x86/events/amd/uncore.c:365:39: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:730:10: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:365:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got union amd_uncore_info * @@ arch/x86/events/amd/uncore.c:365:39: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/events/amd/uncore.c:365:39: sparse: got union amd_uncore_info * arch/x86/events/amd/uncore.c:365:39: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:848:22: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:880:21: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:881:37: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:882:25: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:901:22: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:904:29: sparse: sparse: dereference of noderef expression arch/x86/events/amd/uncore.c:905:17: sparse: sparse: dereference of noderef expression
vim +601 arch/x86/events/amd/uncore.c
582 583 static 584 void amd_uncore_df_ctx_scan(struct amd_uncore *uncore, unsigned int cpu) 585 { 586 union cpuid_0x80000022_ebx ebx; 587 union amd_uncore_info info; 588 589 if (!boot_cpu_has(X86_FEATURE_PERFCTR_NB)) 590 return; 591 592 info.split.aux_data = 0; 593 info.split.num_pmcs = NUM_COUNTERS_NB; 594 info.split.cid = topology_die_id(cpu); 595 596 if (pmu_version >= 2) { 597 ebx.full = cpuid_ebx(EXT_PERFMON_DEBUG_FEATURES); 598 info.split.num_pmcs = ebx.split.num_df_pmc; 599 } 600
601 *per_cpu_ptr(uncore->info, cpu) = info;
602 } 603