[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <59d9ca29-6e57-3a9c-f6dc-fca3619dfacc@hisilicon.com>
Date: Wed, 28 Jun 2017 13:50:28 +0800
From: Zhangshaokun <zhangshaokun@...ilicon.com>
To: kbuild test robot <lkp@...el.com>
CC: <mark.rutland@....com>, <linux-doc@...r.kernel.org>,
<will.deacon@....com>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>, <kbuild-all@...org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/6] drivers: perf: hisi: Add support for HiSilicon SoC
uncore PMU driver
Hi,
On 2017/6/28 9:49, kbuild test robot wrote:
> Hi Shaokun,
>
> [auto build test ERROR on next-20170619]
> [also build test ERROR on v4.12-rc7]
> [cannot apply to linus/master linux/master arm64/for-next/core v4.12-rc6 v4.12-rc5 v4.12-rc4]
> [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/Shaokun-Zhang/Add-HiSilicon-SoC-uncore-Performance-Monitoring-Unit-driver/20170628-070841
> config: x86_64-allmodconfig (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> drivers/perf/hisilicon/hisi_uncore_pmu.c: In function 'hisi_read_scl_and_ccl_id':
>>> drivers/perf/hisilicon/hisi_uncore_pmu.c:72:10: error: implicit declaration of function 'read_cpuid_mpidr' [-Werror=implicit-function-declaration]
> mpidr = read_cpuid_mpidr();
> ^~~~~~~~~~~~~~~~
>>> drivers/perf/hisilicon/hisi_uncore_pmu.c:73:14: error: 'MPIDR_MT_BITMASK' undeclared (first use in this function)
> if (mpidr & MPIDR_MT_BITMASK) {
> ^~~~~~~~~~~~~~~~
> drivers/perf/hisilicon/hisi_uncore_pmu.c:73:14: note: each undeclared identifier is reported only once for each function it appears in
>>> drivers/perf/hisilicon/hisi_uncore_pmu.c:75:14: error: implicit declaration of function 'MPIDR_AFFINITY_LEVEL' [-Werror=implicit-function-declaration]
> *scl_id = MPIDR_AFFINITY_LEVEL(mpidr, 3);
> ^~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
Apologies for my modified drivers/perf/Kconfig for HISI_PMU.
It depends on ARM64 and i shall remove COMPILE_TEST to fix it.
Thanks.
Shaokun
> vim +/read_cpuid_mpidr +72 drivers/perf/hisilicon/hisi_uncore_pmu.c
>
> 66
> 67 /* Read Super CPU cluster and CPU cluster ID from MPIDR_EL1 */
> 68 void hisi_read_scl_and_ccl_id(u32 *scl_id, u32 *ccl_id)
> 69 {
> 70 u64 mpidr;
> 71
> > 72 mpidr = read_cpuid_mpidr();
> > 73 if (mpidr & MPIDR_MT_BITMASK) {
> 74 if (scl_id)
> > 75 *scl_id = MPIDR_AFFINITY_LEVEL(mpidr, 3);
> 76 if (ccl_id)
> 77 *ccl_id = MPIDR_AFFINITY_LEVEL(mpidr, 2);
> 78 } else {
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
>
>
>
> _______________________________________________
> linuxarm mailing list
> linuxarm@...wei.com
> http://rnd-openeuler.huawei.com/mailman/listinfo/linuxarm
>
Powered by blists - more mailing lists