mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jeremy Linton <jeremy.linton@arm.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	will.deacon@arm.com, mark.rutland@arm.com, peterz@infradead.org,
	mingo@redhat.com, catalin.marinas@arm.com, msalter@redhat.com,
	timur@codeaurora.org, nleeder@codeaurora.org,
	agustinv@codeaurora.org, sfr@canb.auug.org.au,
	Jeremy Linton <jeremy.linton@arm.com>
Subject: Re: [PATCH 4/4] arm64: pmu: add A72 cpu type, support multiple PMU types
Date: Sat, 9 Apr 2016 07:22:09 +0800	[thread overview]
Message-ID: <201604090732.d8Rr59Ev%fengguang.wu@intel.com> (raw)
In-Reply-To: <1460152627-3248-5-git-send-email-jeremy.linton@arm.com>

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

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 #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22770 bytes --]

      reply	other threads:[~2016-04-08 23:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-08 21:57 [PATCH 0/4 v3] arm64/perf: Add ACPI support Jeremy Linton
2016-04-08 21:57 ` [PATCH 1/4] arm: pmu: Fix non-devicetree probing Jeremy Linton
2016-04-08 21:57 ` [PATCH 2/4] arm64: pmu: add fallback probe table Jeremy Linton
2016-04-12  8:22   ` Jan Glauber
2016-04-08 21:57 ` [PATCH 3/4] arm64: pmu: Add support for probing with ACPI Jeremy Linton
2016-04-08 21:57 ` [PATCH 4/4] arm64: pmu: add A72 cpu type, support multiple PMU types Jeremy Linton
2016-04-08 23:22   ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201604090732.d8Rr59Ev%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=agustinv@codeaurora.org \
    --cc=catalin.marinas@arm.com \
    --cc=jeremy.linton@arm.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=msalter@redhat.com \
    --cc=nleeder@codeaurora.org \
    --cc=peterz@infradead.org \
    --cc=sfr@canb.auug.org.au \
    --cc=timur@codeaurora.org \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®