mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, mpe@ellerman.id.au,
	linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	stewart@linux.vnet.ibm.com, eranian@google.com,
	benh@kernel.crashing.org, paulus@samba.org,
	sukadev@linux.vnet.ibm.com, ego@linux.vnet.ibm.com,
	mikey@neuling.org, dja@axtens.net, anton@samba.org,
	Anju T Sudhakar <anju@linux.vnet.ibm.com>,
	Hemant Kumar <hemant@linux.vnet.ibm.com>
Subject: Re: [PATCH v10 09/10] powerpc/perf: Thread IMC PMU functions
Date: Mon, 12 Jun 2017 11:50:09 +0530	[thread overview]
Message-ID: <3b50b153-147f-bd0b-4d00-cdc538d4ca10@linux.vnet.ibm.com> (raw)
In-Reply-To: <201706110405.SsDksZd2%fengguang.wu@intel.com>



On Sunday 11 June 2017 01:43 AM, kbuild test robot wrote:
> Hi Anju,
>
> [auto build test ERROR on powerpc/next]
> [also build test ERROR on v4.12-rc4 next-20170609]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
>
> url:    https://github.com/0day-ci/linux/commits/Madhavan-Srinivasan/IMC-Instrumentation-Support/20170609-183528
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
> config: powerpc-defconfig (attached as .config)
> compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>          wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>          chmod +x ~/bin/make.cross
>          # save the attached .config to linux build tree
>          make.cross ARCH=powerpc
>
> Note: the linux-review/Madhavan-Srinivasan/IMC-Instrumentation-Support/20170609-183528 HEAD 32ada0705ff79986e8ceca5e83dba14c0b620751 builds fine.
>        It only hurts bisectibility.
>
> All errors (new ones prefixed by >>):
>
>     In file included from include/linux/compiler.h:62:0,
>                      from include/uapi/linux/stddef.h:1,
>                      from include/linux/stddef.h:4,
>                      from include/uapi/linux/posix_types.h:4,
>                      from include/uapi/linux/types.h:13,
>                      from include/linux/types.h:5,
>                      from include/uapi/linux/perf_event.h:17,
>                      from include/linux/perf_event.h:17,
>                      from arch/powerpc/perf/imc-pmu.c:13:
>     arch/powerpc/perf/imc-pmu.c: In function 'cleanup_all_thread_imc_memory':
>>> arch/powerpc/perf/imc-pmu.c:863:31: error: 'cpu' undeclared (first use in this function)
Have fixed this issue in the next patch. Damn my bad.
Will wait for comments and if needed can respin just with this.

Maddy

>        if (per_cpu(thread_imc_mem, cpu))
>                                    ^
>     include/linux/compiler-gcc.h:53:26: note: in definition of macro 'RELOC_HIDE'
>       (typeof(ptr)) (__ptr + (off));     \
>                               ^~~
>     include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
>       SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu)));   \
>       ^~~~~~~~~~~~~~~~
>     include/linux/percpu-defs.h:223:26: note: in expansion of macro 'per_cpu_offset'
>       SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu)));   \
>                               ^~~~~~~~~~~~~~
>     include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
>      #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
>                                  ^~~~~~~~~~~
>     arch/powerpc/perf/imc-pmu.c:863:7: note: in expansion of macro 'per_cpu'
>        if (per_cpu(thread_imc_mem, cpu))
>            ^~~~~~~
>     arch/powerpc/perf/imc-pmu.c:863:31: note: each undeclared identifier is reported only once for each function it appears in
>        if (per_cpu(thread_imc_mem, cpu))
>                                    ^
>     include/linux/compiler-gcc.h:53:26: note: in definition of macro 'RELOC_HIDE'
>       (typeof(ptr)) (__ptr + (off));     \
>                               ^~~
>     include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
>       SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu)));   \
>       ^~~~~~~~~~~~~~~~
>     include/linux/percpu-defs.h:223:26: note: in expansion of macro 'per_cpu_offset'
>       SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu)));   \
>                               ^~~~~~~~~~~~~~
>     include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
>      #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
>                                  ^~~~~~~~~~~
>     arch/powerpc/perf/imc-pmu.c:863:7: note: in expansion of macro 'per_cpu'
>        if (per_cpu(thread_imc_mem, cpu))
>            ^~~~~~~
>
> vim +/cpu +863 arch/powerpc/perf/imc-pmu.c
>
>     857	
>     858	static void cleanup_all_thread_imc_memory(void)
>     859	{
>     860		int i;
>     861	
>     862		for_each_online_cpu(i) {
>   > 863			if (per_cpu(thread_imc_mem, cpu))
>     864				free_pages(per_cpu(thread_imc_mem, cpu), 0);
>     865		}
>     866	}
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

      reply	other threads:[~2017-06-12  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08 20:24 Madhavan Srinivasan
2017-06-10 20:13 ` kbuild test robot
2017-06-12  6:20   ` Madhavan Srinivasan [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=3b50b153-147f-bd0b-4d00-cdc538d4ca10@linux.vnet.ibm.com \
    --to=maddy@linux.vnet.ibm.com \
    --cc=anju@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=benh@kernel.crashing.org \
    --cc=dja@axtens.net \
    --cc=ego@linux.vnet.ibm.com \
    --cc=eranian@google.com \
    --cc=hemant@linux.vnet.ibm.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=lkp@intel.com \
    --cc=mikey@neuling.org \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@samba.org \
    --cc=stewart@linux.vnet.ibm.com \
    --cc=sukadev@linux.vnet.ibm.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

Powered by JetHome