All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:queue-5.12 32/35] arch/x86/events/intel/lbr.c:729:16: error: too many arguments to function 'x86_get_pmu'
@ 2021-05-24  0:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-24  0:48 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.12
head:   ac24f18ba7b235ec30919c2b1e84fb2a2033be47
commit: b7c724b23139e432dbef68d45b19607c6b069356 [32/35] perf/x86/lbr: Remove cpuc->lbr_xsave allocation from atomic context
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=b7c724b23139e432dbef68d45b19607c6b069356
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable queue-5.12
        git checkout b7c724b23139e432dbef68d45b19607c6b069356
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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 function 'x86_get_pmu'
     729 |   kmem_cache = 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:908:13: note: declared here
     908 | 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 = per_cpu_ptr(&cpu_hw_events, cpu);
 > 729			kmem_cache = x86_get_pmu(cpu)->task_ctx_cache;
   730			if (!kmem_cache || cpuc->lbr_xsave)
   731				continue;
   732	
   733			cpuc->lbr_xsave = 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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7347 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-24  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  0:48 [sashal-linux-stable:queue-5.12 32/35] arch/x86/events/intel/lbr.c:729:16: error: too many arguments to function 'x86_get_pmu' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.