Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [rppt:gfp-to-kmalloc/v0.1 234/238] arch/x86/xen/pmu.c:551:52: error: too few arguments provided to function-like macro invocation
@ 2026-05-19 21:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-19 21:32 UTC (permalink / raw)
  To: Mike Rapoport (Microsoft); +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-to-kmalloc/v0.1
head:   cf8f69ff9142effba4d8d9a70a1a4f275044376c
commit: 04507bba0f5ca2d399ac98b495682a381b669c27 [234/238] x86/xen/msr: replace get_zeroed_page() with kzalloc()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260520/202605200546.bZPeSOBS-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260520/202605200546.bZPeSOBS-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/202605200546.bZPeSOBS-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/xen/pmu.c:551:52: error: too few arguments provided to function-like macro invocation
     551 |         kfree((void *)(unsigned long)per_cpu(xenpmu_shared).xenpmu_data, 0);
         |                                                           ^
   include/linux/percpu-defs.h:273:9: note: macro 'per_cpu' defined here
     273 | #define per_cpu(var, cpu)       (*per_cpu_ptr(&(var), cpu))
         |         ^
>> arch/x86/xen/pmu.c:551:31: error: use of undeclared identifier 'per_cpu'
     551 |         kfree((void *)(unsigned long)per_cpu(xenpmu_shared).xenpmu_data, 0);
         |                                      ^
   2 errors generated.


vim +551 arch/x86/xen/pmu.c

   537	
   538	void xen_pmu_finish(int cpu)
   539	{
   540		struct xen_pmu_params xp;
   541	
   542		if (xen_hvm_domain())
   543			return;
   544	
   545		xp.vcpu = cpu;
   546		xp.version.maj = XENPMU_VER_MAJ;
   547		xp.version.min = XENPMU_VER_MIN;
   548	
   549		(void)HYPERVISOR_xenpmu_op(XENPMU_finish, &xp);
   550	
 > 551		kfree((void *)(unsigned long)per_cpu(xenpmu_shared).xenpmu_data, 0);

--
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:[~2026-05-19 21:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 21:32 [rppt:gfp-to-kmalloc/v0.1 234/238] arch/x86/xen/pmu.c:551:52: error: too few arguments provided to function-like macro invocation 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