From: kernel test robot <lkp@intel.com>
To: YueHaibing <yuehaibing@huawei.com>,
will@kernel.org, mark.rutland@arm.com
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>
Subject: Re: [PATCH -next] perf: arm_spe: use DEVICE_ATTR_RO macro
Date: Fri, 28 May 2021 13:23:01 +0800 [thread overview]
Message-ID: <202105281325.aZddnlQ7-lkp@intel.com> (raw)
In-Reply-To: <20210528014318.23380-1-yuehaibing@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 2924 bytes --]
Hi YueHaibing,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20210527]
url: https://github.com/0day-ci/linux/commits/YueHaibing/perf-arm_spe-use-DEVICE_ATTR_RO-macro/20210528-094415
base: d975636c274169a218816c8e69d8215fd6a11791
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/9fda522df9dfbcdccbe387fe3fb1d016efd33842
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review YueHaibing/perf-arm_spe-use-DEVICE_ATTR_RO-macro/20210528-094415
git checkout 9fda522df9dfbcdccbe387fe3fb1d016efd33842
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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/perf/arm_spe_pmu.c:241:27: error: macro "DEVICE_ATTR" requires 4 arguments, but only 1 given
241 | static DEVICE_ATTR(cpumask);
| ^
In file included from drivers/perf/arm_spe_pmu.c:20:
include/linux/device.h:125: note: macro "DEVICE_ATTR" defined here
125 | #define DEVICE_ATTR(_name, _mode, _show, _store) \
|
>> drivers/perf/arm_spe_pmu.c:241:8: error: type defaults to 'int' in declaration of 'DEVICE_ATTR' [-Werror=implicit-int]
241 | static DEVICE_ATTR(cpumask);
| ^~~~~~~~~~~
>> drivers/perf/arm_spe_pmu.c:244:3: error: 'dev_attr_cpumask' undeclared here (not in a function)
244 | &dev_attr_cpumask.attr,
| ^~~~~~~~~~~~~~~~
drivers/perf/arm_spe_pmu.c:241:8: warning: 'DEVICE_ATTR' defined but not used [-Wunused-variable]
241 | static DEVICE_ATTR(cpumask);
| ^~~~~~~~~~~
drivers/perf/arm_spe_pmu.c:234:16: warning: 'cpumask_show' defined but not used [-Wunused-function]
234 | static ssize_t cpumask_show(struct device *dev,
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/DEVICE_ATTR +241 drivers/perf/arm_spe_pmu.c
233
234 static ssize_t cpumask_show(struct device *dev,
235 struct device_attribute *attr, char *buf)
236 {
237 struct arm_spe_pmu *spe_pmu = dev_get_drvdata(dev);
238
239 return cpumap_print_to_pagebuf(true, buf, &spe_pmu->supported_cpus);
240 }
> 241 static DEVICE_ATTR(cpumask);
242
243 static struct attribute *arm_spe_pmu_attrs[] = {
> 244 &dev_attr_cpumask.attr,
245 NULL,
246 };
247
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 77972 bytes --]
prev parent reply other threads:[~2021-05-28 5:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 1:43 YueHaibing
2021-05-28 5:23 ` kernel 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=202105281325.aZddnlQ7-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=will@kernel.org \
--cc=yuehaibing@huawei.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®