Hi Sumit,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on arm-soc/for-next arm/for-next xlnx/master kvmarm/next
linus/master v5.7-rc5 next-20200514]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Sumit-Garg/arm64-Enable-perf-eve...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/asm-generic/percpu.h:7,
from arch/arm/include/asm/percpu.h:39,
from include/linux/percpu.h:13,
from include/linux/context_tracking_state.h:5,
from include/linux/vtime.h:5,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:11,
from include/linux/perf/arm_pmu.h:11,
from drivers/perf/arm_pmu.c:20:
drivers/perf/arm_pmu.c: In function 'arm_pmu_irq_is_nmi':
> drivers/perf/arm_pmu.c:613:20: error: 'cpu_irq_ops'
undeclared (first use in this function); did you mean 'pmu_irq_ops'?
613 |
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
| ^~~~~~~~~~~
include/linux/percpu-defs.h:219:47: note: in definition of macro
'__verify_pcpu_ptr'
219 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; |
^~~
include/linux/percpu-defs.h:269:29: note: in expansion of macro 'per_cpu_ptr'
269 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
| ^~~~~~~~~~~
> drivers/perf/arm_pmu.c:613:12: note: in expansion of macro
'per_cpu'
613 | irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
| ^~~~~~~
drivers/perf/arm_pmu.c:613:20: note: each undeclared identifier is reported only once for
each function it appears in
613 | irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
| ^~~~~~~~~~~
include/linux/percpu-defs.h:219:47: note: in definition of macro
'__verify_pcpu_ptr'
219 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; |
^~~
include/linux/percpu-defs.h:269:29: note: in expansion of macro 'per_cpu_ptr'
269 | #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
| ^~~~~~~~~~~
> drivers/perf/arm_pmu.c:613:12: note: in expansion of macro
'per_cpu'
613 | irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
| ^~~~~~~
> drivers/perf/arm_pmu.c:614:18: error: 'pmunmi_ops'
undeclared (first use in this function)
614 | if (irq_ops == &pmunmi_ops ||
irq_ops == &percpu_pmunmi_ops)
| ^~~~~~~~~~
> drivers/perf/arm_pmu.c:614:44: error: 'percpu_pmunmi_ops'
undeclared (first use in this function)
614 | if (irq_ops == &pmunmi_ops ||
irq_ops == &percpu_pmunmi_ops)
| ^~~~~~~~~~~~~~~~~
> drivers/perf/arm_pmu.c:618:1: warning: control reaches end of
non-void function [-Wreturn-type]
618 | }
| ^
vim +613 drivers/perf/arm_pmu.c
608
609 bool arm_pmu_irq_is_nmi(void)
610 {
611 const struct pmu_irq_ops *irq_ops;
612
613 irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
614 if (irq_ops == &pmunmi_ops || irq_ops == &percpu_pmunmi_ops)
615 return true;
616 else
617 return false;
618 }
619
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org