lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201604090732.d8Rr59Ev%fengguang.wu@intel.com>
Date:	Sat, 9 Apr 2016 07:22:09 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Jeremy Linton <jeremy.linton@....com>
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	will.deacon@....com, mark.rutland@....com, peterz@...radead.org,
	mingo@...hat.com, catalin.marinas@....com, msalter@...hat.com,
	timur@...eaurora.org, nleeder@...eaurora.org,
	agustinv@...eaurora.org, sfr@...b.auug.org.au,
	Jeremy Linton <jeremy.linton@....com>
Subject: Re: [PATCH 4/4] arm64: pmu: add A72 cpu type, support multiple PMU
 types

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

Download attachment ".config.gz" of type "application/octet-stream" (22770 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ