From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 18/21] drivers/scsi/aacraid/aachba.c:342:29: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared; did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
Date: Sat, 13 Nov 2021 09:58:58 +0800 [thread overview]
Message-ID: <202111130955.v8ul0sxJ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4031 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head: 915b986531e666d840f72752c597fb6b4ea69d35
commit: 62ef655cc63719b6556a5233e305edc9ffc644bc [18/21] aacraid: sanitize container callbacks
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=62ef655cc63719b6556a5233e305edc9ffc644bc
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel scsi-private.v2
git checkout 62ef655cc63719b6556a5233e305edc9ffc644bc
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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/scsi/aacraid/aachba.c: In function 'aac_valid_context':
>> drivers/scsi/aacraid/aachba.c:342:29: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
342 | if (fibptr->flags & FIB_CONTEXT_INTERNAL_CMD)
| ^~~~~~~~~~~~~~~~~~~~~~~~
| FIB_CONTEXT_FLAG_INTERNAL_CMD
drivers/scsi/aacraid/aachba.c:342:29: note: each undeclared identifier is reported only once for each function it appears in
drivers/scsi/aacraid/aachba.c: In function '_aac_probe_container2':
drivers/scsi/aacraid/aachba.c:650:31: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
650 | if (!(fibptr->flags & FIB_CONTEXT_INTERNAL_CMD))
| ^~~~~~~~~~~~~~~~~~~~~~~~
| FIB_CONTEXT_FLAG_INTERNAL_CMD
drivers/scsi/aacraid/aachba.c: In function '_aac_probe_container1':
drivers/scsi/aacraid/aachba.c:720:30: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
720 | if ((fibptr->flags & FIB_CONTEXT_INTERNAL_CMD) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~
| FIB_CONTEXT_FLAG_INTERNAL_CMD
drivers/scsi/aacraid/aachba.c: In function 'aac_probe_container':
drivers/scsi/aacraid/aachba.c:848:16: error: 'struct scsi_cmnd' has no member named 'scsi_done'
848 | scsicmd->scsi_done = aac_probe_container_scsi_done;
| ^~
vim +342 drivers/scsi/aacraid/aachba.c
323
324 static int aac_wwn = 1;
325 module_param_named(wwn, aac_wwn, int, S_IRUGO|S_IWUSR);
326 MODULE_PARM_DESC(wwn, "Select a WWN type for the arrays:\n"
327 "\t0 - Disable\n"
328 "\t1 - Array Meta Data Signature (default)\n"
329 "\t2 - Adapter Serial Number");
330
331
332 static inline int aac_valid_context(struct scsi_cmnd *scsicmd,
333 struct fib *fibptr) {
334 struct scsi_device *device;
335
336 if (unlikely(!scsicmd)) {
337 dprintk((KERN_WARNING "aac_valid_context: scsi command corrupt\n"));
338 aac_fib_complete(fibptr);
339 return 0;
340 }
341 fibptr->owner = AAC_OWNER_MIDLEVEL;
> 342 if (fibptr->flags & FIB_CONTEXT_INTERNAL_CMD)
343 return 1;
344 device = scsicmd->device;
345 if (unlikely(!device)) {
346 dprintk((KERN_WARNING "aac_valid_context: scsi device corrupt\n"));
347 aac_fib_complete(fibptr);
348 return 0;
349 }
350 return 1;
351 }
352
---
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: 69180 bytes --]
reply other threads:[~2021-11-13 1:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202111130955.v8ul0sxJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@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