From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8587874282536406504==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ti:ti-rt-linux-5.10.y 4522/9999] arch/x86/events/intel/lbr.c:729:16: error: too many arguments to function 'x86_get_pmu' Date: Sat, 22 Jan 2022 20:22:15 +0800 Message-ID: <202201221956.kthYuW0r-lkp@intel.com> List-Id: --===============8587874282536406504== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.= 10.y head: d19d8f329cd20e1e2d14f30ed08d6a1164e6e9d9 commit: 56bc20e5fc64d55c194475692ee60893a3f452a5 [4522/9999] perf/x86/lbr: = Remove cpuc->lbr_xsave allocation from atomic context config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220= 122/202201221956.kthYuW0r-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.= git git fetch --no-tags ti ti-rt-linux-5.10.y git checkout 56bc20e5fc64d55c194475692ee60893a3f452a5 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash arch/x86/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Note: the ti/ti-rt-linux-5.10.y HEAD d19d8f329cd20e1e2d14f30ed08d6a1164e6e9= d9 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): arch/x86/events/intel/lbr.c: In function 'reserve_lbr_buffers': >> arch/x86/events/intel/lbr.c:729:16: error: too many arguments to functio= n 'x86_get_pmu' 729 | kmem_cache =3D x86_get_pmu(cpu)->task_ctx_cache; | ^~~~~~~~~~~ In file included from arch/x86/events/intel/lbr.c:9: arch/x86/events/intel/../perf_event.h:900:13: note: declared here 900 | struct pmu *x86_get_pmu(void); | ^~~~~~~~~~~ vim +/x86_get_pmu +729 arch/x86/events/intel/lbr.c 717 = 718 void reserve_lbr_buffers(void) 719 { 720 struct kmem_cache *kmem_cache; 721 struct cpu_hw_events *cpuc; 722 int cpu; 723 = 724 if (!static_cpu_has(X86_FEATURE_ARCH_LBR)) 725 return; 726 = 727 for_each_possible_cpu(cpu) { 728 cpuc =3D per_cpu_ptr(&cpu_hw_events, cpu); > 729 kmem_cache =3D x86_get_pmu(cpu)->task_ctx_cache; 730 if (!kmem_cache || cpuc->lbr_xsave) 731 continue; 732 = 733 cpuc->lbr_xsave =3D kmem_cache_alloc_node(kmem_cache, GFP_KERNEL, 734 cpu_to_node(cpu)); 735 } 736 } 737 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8587874282536406504==--