From: kbuild test robot <lkp@intel.com>
To: Samuel Zou <zou_wei@huawei.com>,
agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com,
linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] dm mpath: Remove unused variable ret
Date: Fri, 8 May 2020 09:47:46 +0800 [thread overview]
Message-ID: <202005080938.kjFjb3ja%lkp@intel.com> (raw)
In-Reply-To: <1588854412-19301-1-git-send-email-zou_wei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 4419 bytes --]
Hi Samuel,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20200507]
[also build test ERROR on dm/for-next]
[cannot apply to v5.7-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Samuel-Zou/dm-mpath-Remove-unused-variable-ret/20200508-031551
base: 6b43f715b6379433e8eb30aa9bcc99bd6a585f77
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/md/dm.h:14,
from drivers/md/dm-historical-service-time.c:24:
drivers/md/dm-historical-service-time.c: In function 'hst_status':
>> include/linux/device-mapper.h:570:22: error: 'sz' undeclared (first use in this function); did you mean 's'?
570 | #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
| ^~
>> drivers/md/dm-historical-service-time.c:245:3: note: in expansion of macro 'DMEMIT'
245 | DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
| ^~~~~~
include/linux/device-mapper.h:570:22: note: each undeclared identifier is reported only once for each function it appears in
570 | #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
| ^~
>> drivers/md/dm-historical-service-time.c:245:3: note: in expansion of macro 'DMEMIT'
245 | DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
| ^~~~~~
vim +/DMEMIT +245 drivers/md/dm-historical-service-time.c
580d206a4321a1 Khazhismel Kumykov 2020-04-30 236
580d206a4321a1 Khazhismel Kumykov 2020-04-30 237 static int hst_status(struct path_selector *ps, struct dm_path *path,
580d206a4321a1 Khazhismel Kumykov 2020-04-30 238 status_type_t type, char *result, unsigned int maxlen)
580d206a4321a1 Khazhismel Kumykov 2020-04-30 239 {
580d206a4321a1 Khazhismel Kumykov 2020-04-30 240 struct path_info *pi;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 241
580d206a4321a1 Khazhismel Kumykov 2020-04-30 242 if (!path) {
580d206a4321a1 Khazhismel Kumykov 2020-04-30 243 struct selector *s = ps->context;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 244
580d206a4321a1 Khazhismel Kumykov 2020-04-30 @245 DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
580d206a4321a1 Khazhismel Kumykov 2020-04-30 246 } else {
580d206a4321a1 Khazhismel Kumykov 2020-04-30 247 pi = path->pscontext;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 248
580d206a4321a1 Khazhismel Kumykov 2020-04-30 249 switch (type) {
580d206a4321a1 Khazhismel Kumykov 2020-04-30 250 case STATUSTYPE_INFO:
580d206a4321a1 Khazhismel Kumykov 2020-04-30 251 DMEMIT("%llu %llu %llu ", pi->historical_service_time,
580d206a4321a1 Khazhismel Kumykov 2020-04-30 252 pi->outstanding, pi->stale_after);
580d206a4321a1 Khazhismel Kumykov 2020-04-30 253 break;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 254 case STATUSTYPE_TABLE:
580d206a4321a1 Khazhismel Kumykov 2020-04-30 255 DMEMIT("0 ");
580d206a4321a1 Khazhismel Kumykov 2020-04-30 256 break;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 257 }
580d206a4321a1 Khazhismel Kumykov 2020-04-30 258 }
580d206a4321a1 Khazhismel Kumykov 2020-04-30 259
356072d04813ba Samuel Zou 2020-05-07 260 return 0;
580d206a4321a1 Khazhismel Kumykov 2020-04-30 261 }
580d206a4321a1 Khazhismel Kumykov 2020-04-30 262
:::::: The code at line 245 was first introduced by commit
:::::: 580d206a4321a146ef4637f14f2fc6d0d5c72c12 dm mpath: add Historical Service Time Path Selector
:::::: TO: Khazhismel Kumykov <khazhy@google.com>
:::::: CC: Mike Snitzer <snitzer@redhat.com>
---
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: 61824 bytes --]
prev parent reply other threads:[~2020-05-08 1:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 12:26 [PATCH -next] dm mpath: Remove unused variable ret Samuel Zou
2020-05-07 14:29 ` Mike Snitzer
2020-05-08 1:06 ` Samuel Zou
2020-05-08 1:47 ` kbuild 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=202005080938.kjFjb3ja%lkp@intel.com \
--to=lkp@intel.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=snitzer@redhat.com \
--cc=zou_wei@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