From: YueHaibing <yuehaibing@huawei.com>
To: kernel test robot <lkp@intel.com>, <dougmill@linux.ibm.com>,
<davem@davemloft.net>, <kuba@kernel.org>
Cc: <kbuild-all@lists.01.org>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next] ehea: Use DEVICE_ATTR_*() macro
Date: Sun, 23 May 2021 14:01:10 +0800 [thread overview]
Message-ID: <4ba60312-b6ee-23db-bd1b-585dc5e83ae4@huawei.com> (raw)
In-Reply-To: <202105231357.TeRSEcVH-lkp@intel.com>
On 2021/5/23 13:14, kernel test robot wrote:
> Hi YueHaibing,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on net-next/master]
>
> url: https://github.com/0day-ci/linux/commits/YueHaibing/ehea-Use-DEVICE_ATTR_-macro/20210523-111702
> base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git f5120f5998803a973b1d432ed2aa7e592527aa46
> config: powerpc-allmodconfig (attached as .config)
> compiler: powerpc64-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/7402089765bd60dcd72cad433fd318058e06d514
> git remote add linux-review https://github.com/0day-ci/linux
> git fetch --no-tags linux-review YueHaibing/ehea-Use-DEVICE_ATTR_-macro/20210523-111702
> git checkout 7402089765bd60dcd72cad433fd318058e06d514
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
>
> 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 >>):
>
> In file included from include/linux/kobject.h:20,
> from include/linux/energy_model.h:7,
> from include/linux/device.h:16,
> from drivers/net/ethernet/ibm/ehea/ehea_main.c:17:
>>> drivers/net/ethernet/ibm/ehea/ehea_main.c:3206:23: error: 'probe_port_store' undeclared here (not in a function); did you mean 'probe_port_show'?
Sorry, this is the wrong version.
> 3206 | static DEVICE_ATTR_WO(probe_port);
> | ^~~~~~~~~~
> include/linux/sysfs.h:135:11: note: in definition of macro '__ATTR_WO'
> 135 | .store = _name##_store, \
> | ^~~~~
> drivers/net/ethernet/ibm/ehea/ehea_main.c:3206:8: note: in expansion of macro 'DEVICE_ATTR_WO'
> 3206 | static DEVICE_ATTR_WO(probe_port);
> | ^~~~~~~~~~~~~~
> drivers/net/ethernet/ibm/ehea/ehea_main.c:3116:16: warning: 'probe_port_show' defined but not used [-Wunused-function]
> 3116 | static ssize_t probe_port_show(struct device *dev,
> | ^~~~~~~~~~~~~~~
>
>
> vim +3206 drivers/net/ethernet/ibm/ehea/ehea_main.c
>
> 3205
>> 3206 static DEVICE_ATTR_WO(probe_port);
> 3207 static DEVICE_ATTR_WO(remove_port);
> 3208
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
prev parent reply other threads:[~2021-05-23 6:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-23 3:15 YueHaibing
2021-05-23 5:14 ` kernel test robot
2021-05-23 6:01 ` YueHaibing [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=4ba60312-b6ee-23db-bd1b-585dc5e83ae4@huawei.com \
--to=yuehaibing@huawei.com \
--cc=davem@davemloft.net \
--cc=dougmill@linux.ibm.com \
--cc=kbuild-all@lists.01.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.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 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®