Re: [PATCH 4/4] arm64: pmu: add A72 cpu type, support multiple PMU types
From: kbuild test robot
Date: Fri Apr 08 2016 - 19:23:21 EST
Hi Jeremy,
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v4.6-rc2 next-20160408]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Jeremy-Linton/arm-pmu-Fix-non-devicetree-probing/20160409-060104
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux for-next/core
config: arm-multi_v5_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/percpu.h:6:0,
from arch/arm/include/asm/percpu.h:50,
from include/linux/percpu.h:12,
from include/linux/topology.h:34,
from include/linux/gfp.h:8,
from include/linux/slab.h:14,
from include/linux/resource_ext.h:19,
from include/linux/acpi.h:26,
from drivers/perf/arm_pmu.c:14:
drivers/perf/arm_pmu.c: In function 'probe_plat_pmu':
>> include/linux/percpu-defs.h:250:31: warning: initialization from incompatible pointer type
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^
>> drivers/perf/arm_pmu.c:880:33: note: in expansion of macro 'per_cpu_ptr'
struct cpuinfo_arm64 *cinfo = per_cpu_ptr(&cpu_data, cpu);
^
>> drivers/perf/arm_pmu.c:881:29: error: dereferencing pointer to incomplete type
unsigned int cpuid = cinfo->reg_midr;
^
In file included from include/asm-generic/percpu.h:6:0,
from arch/arm/include/asm/percpu.h:50,
from include/linux/percpu.h:12,
from include/linux/topology.h:34,
from include/linux/gfp.h:8,
from include/linux/slab.h:14,
from include/linux/resource_ext.h:19,
from include/linux/acpi.h:26,
from drivers/perf/arm_pmu.c:14:
drivers/perf/arm_pmu.c: In function 'arm_pmu_device_probe':
>> include/linux/percpu-defs.h:250:31: warning: initialization from incompatible pointer type
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^
drivers/perf/arm_pmu.c:1030:34: note: in expansion of macro 'per_cpu_ptr'
struct cpuinfo_arm64 *cinfo = per_cpu_ptr(&cpu_data, 0);
^
drivers/perf/arm_pmu.c:1031:30: error: dereferencing pointer to incomplete type
unsigned int cpuid = cinfo->reg_midr;
^
vim +881 drivers/perf/arm_pmu.c
874 GFP_KERNEL);
875 if (!pmu->irq_affinity)
876 return -ENOMEM;
877 }
878
879 for_each_possible_cpu(cpu) {
> 880 struct cpuinfo_arm64 *cinfo = per_cpu_ptr(&cpu_data, cpu);
> 881 unsigned int cpuid = cinfo->reg_midr;
882
883 if (cpuid == pmuid) {
884 cpumask_set_cpu(cpu, &pmu->supported_cpus);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data