From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC v2 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats
Date: Wed, 26 May 2021 06:11:12 +0800 [thread overview]
Message-ID: <202105260606.gRJJFrCO-lkp@intel.com> (raw)
In-Reply-To: <20210525132216.1239259-2-kjain@linux.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 3867 bytes --]
Hi Kajol,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on powerpc/next]
[also build test ERROR on linus/master linux-nvdimm/libnvdimm-for-next v5.13-rc3 next-20210525]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Kajol-Jain/Add-perf-interface-to-expose-nvdimm/20210525-212538
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3f879e73ac4f8af26d531eba563b35d611b21a2a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kajol-Jain/Add-perf-interface-to-expose-nvdimm/20210525-212538
git checkout 3f879e73ac4f8af26d531eba563b35d611b21a2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/nvdimm/nd_perf.c: In function 'register_nvdimm_pmu':
>> drivers/nvdimm/nd_perf.c:42:7: error: implicit declaration of function 'perf_pmu_register' [-Werror=implicit-function-declaration]
42 | rc = perf_pmu_register(&nd_pmu->pmu, nd_pmu->name, -1);
| ^~~~~~~~~~~~~~~~~
drivers/nvdimm/nd_perf.c: In function 'unregister_nvdimm_pmu':
>> drivers/nvdimm/nd_perf.c:56:2: error: implicit declaration of function 'perf_pmu_unregister'; did you mean 'device_unregister'? [-Werror=implicit-function-declaration]
56 | perf_pmu_unregister(nd_pmu);
| ^~~~~~~~~~~~~~~~~~~
| device_unregister
cc1: some warnings being treated as errors
vim +/perf_pmu_register +42 drivers/nvdimm/nd_perf.c
13
14 int register_nvdimm_pmu(struct nvdimm_pmu *nd_pmu, struct platform_device *pdev)
15 {
16 int rc;
17
18 if (!nd_pmu || !pdev)
19 return -EINVAL;
20
21 /* event functions like add/del/read/event_init should not be NULL */
22 if (WARN_ON_ONCE(!(nd_pmu->event_init && nd_pmu->add && nd_pmu->del && nd_pmu->read)))
23 return -EINVAL;
24
25 nd_pmu->pmu.task_ctx_nr = perf_invalid_context;
26 nd_pmu->pmu.name = nd_pmu->name;
27 nd_pmu->pmu.event_init = nd_pmu->event_init;
28 nd_pmu->pmu.add = nd_pmu->add;
29 nd_pmu->pmu.del = nd_pmu->del;
30 nd_pmu->pmu.read = nd_pmu->read;
31
32 nd_pmu->pmu.attr_groups = nd_pmu->attr_groups;
33 nd_pmu->pmu.capabilities = PERF_PMU_CAP_NO_INTERRUPT |
34 PERF_PMU_CAP_NO_EXCLUDE;
35
36 /*
37 * Add platform_device->dev pointer to nvdimm_pmu to access
38 * device data in events functions.
39 */
40 nd_pmu->dev = &pdev->dev;
41
> 42 rc = perf_pmu_register(&nd_pmu->pmu, nd_pmu->name, -1);
43 if (rc)
44 return rc;
45
46 pr_info("%s NVDIMM performance monitor support registered\n",
47 nd_pmu->name);
48
49 return 0;
50 }
51 EXPORT_SYMBOL_GPL(register_nvdimm_pmu);
52
53 void unregister_nvdimm_pmu(struct pmu *nd_pmu)
54 {
55 /* handle freeing of memory in arch specific code */
> 56 perf_pmu_unregister(nd_pmu);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64427 bytes --]
next prev parent reply other threads:[~2021-05-25 22:11 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 13:22 [RFC v2 0/4] Add perf interface to expose nvdimm Kajol Jain
2021-05-25 13:22 ` Kajol Jain
2021-05-25 13:22 ` [RFC v2 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats Kajol Jain
2021-05-25 13:22 ` Kajol Jain
2021-05-25 22:11 ` kernel test robot [this message]
2021-05-25 13:22 ` [RFC v2 2/4] powerpc/papr_scm: Add perf interface support Kajol Jain
2021-05-25 13:22 ` Kajol Jain
2021-05-25 13:22 ` [RFC v2 3/4] powerpc/papr_scm: Document papr_scm sysfs event format entries Kajol Jain
2021-05-25 13:22 ` Kajol Jain
2021-05-25 13:22 ` [RFC v2 4/4] powerpc/papr_scm: Add cpu hotplug support for nvdimm pmu device Kajol Jain
2021-05-25 13:22 ` Kajol Jain
2021-05-25 14:16 ` Peter Zijlstra
2021-05-25 14:16 ` Peter Zijlstra
2021-05-26 7:26 ` kajoljain
2021-05-26 7:26 ` kajoljain
2021-05-26 8:32 ` Peter Zijlstra
2021-05-26 8:32 ` Peter Zijlstra
2021-05-28 7:53 ` kajoljain
2021-05-28 7:53 ` kajoljain
2021-05-26 8:45 ` Aneesh Kumar K.V
2021-05-26 8:45 ` Aneesh Kumar K.V
2021-05-26 9:08 ` kajoljain
2021-05-26 9:08 ` kajoljain
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=202105260606.gRJJFrCO-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.