* [mkp-scsi:for-next 108/112] drivers/scsi/pcmcia/nsp_cs.c:224:22: error: 'CHECK_CONDITION' undeclared
@ 2021-05-26 9:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 9:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5252 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
head: 46ded13dd3821d96fee65f0cef4bd8f0184607ab
commit: 57de15221f92e1efbed49004edcd81042ba7a9a9 [108/112] scsi: core: Drop obsolete Linux-specific SCSI status codes
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=57de15221f92e1efbed49004edcd81042ba7a9a9
git remote add mkp-scsi https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
git fetch --no-tags mkp-scsi for-next
git checkout 57de15221f92e1efbed49004edcd81042ba7a9a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/pcmcia/nsp_cs.c: In function 'nsp_queuecommand_lck':
>> drivers/scsi/pcmcia/nsp_cs.c:224:22: error: 'CHECK_CONDITION' undeclared (first use in this function)
224 | SCpnt->SCp.Status = CHECK_CONDITION;
| ^~~~~~~~~~~~~~~
drivers/scsi/pcmcia/nsp_cs.c:224:22: note: each undeclared identifier is reported only once for each function it appears in
vim +/CHECK_CONDITION +224 drivers/scsi/pcmcia/nsp_cs.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 219
^1da177e4c3f41 Linus Torvalds 2005-04-16 220 show_command(SCpnt);
^1da177e4c3f41 Linus Torvalds 2005-04-16 221
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 data->CurrentSC = SCpnt;
^1da177e4c3f41 Linus Torvalds 2005-04-16 223
^1da177e4c3f41 Linus Torvalds 2005-04-16 @224 SCpnt->SCp.Status = CHECK_CONDITION;
^1da177e4c3f41 Linus Torvalds 2005-04-16 225 SCpnt->SCp.Message = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 226 SCpnt->SCp.have_data_in = IO_UNKNOWN;
^1da177e4c3f41 Linus Torvalds 2005-04-16 227 SCpnt->SCp.sent_command = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 228 SCpnt->SCp.phase = PH_UNDETERMINED;
040cd23242413a Boaz Harrosh 2007-08-16 229 scsi_set_resid(SCpnt, scsi_bufflen(SCpnt));
^1da177e4c3f41 Linus Torvalds 2005-04-16 230
^1da177e4c3f41 Linus Torvalds 2005-04-16 231 /* setup scratch area
^1da177e4c3f41 Linus Torvalds 2005-04-16 232 SCp.ptr : buffer pointer
^1da177e4c3f41 Linus Torvalds 2005-04-16 233 SCp.this_residual : buffer length
^1da177e4c3f41 Linus Torvalds 2005-04-16 234 SCp.buffer : next buffer
^1da177e4c3f41 Linus Torvalds 2005-04-16 235 SCp.buffers_residual : left buffers in list
^1da177e4c3f41 Linus Torvalds 2005-04-16 236 SCp.phase : current state of the command */
040cd23242413a Boaz Harrosh 2007-08-16 237 if (scsi_bufflen(SCpnt)) {
040cd23242413a Boaz Harrosh 2007-08-16 238 SCpnt->SCp.buffer = scsi_sglist(SCpnt);
^1da177e4c3f41 Linus Torvalds 2005-04-16 239 SCpnt->SCp.ptr = BUFFER_ADDR;
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length;
040cd23242413a Boaz Harrosh 2007-08-16 241 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 } else {
040cd23242413a Boaz Harrosh 2007-08-16 243 SCpnt->SCp.ptr = NULL;
040cd23242413a Boaz Harrosh 2007-08-16 244 SCpnt->SCp.this_residual = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 245 SCpnt->SCp.buffer = NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 246 SCpnt->SCp.buffers_residual = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 247 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 248
^1da177e4c3f41 Linus Torvalds 2005-04-16 249 if (nsphw_start_selection(SCpnt) == FALSE) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 250 nsp_dbg(NSP_DEBUG_QUEUECOMMAND, "selection fail");
^1da177e4c3f41 Linus Torvalds 2005-04-16 251 SCpnt->result = DID_BUS_BUSY << 16;
^1da177e4c3f41 Linus Torvalds 2005-04-16 252 nsp_scsi_done(SCpnt);
^1da177e4c3f41 Linus Torvalds 2005-04-16 253 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 254 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 255
^1da177e4c3f41 Linus Torvalds 2005-04-16 256
^1da177e4c3f41 Linus Torvalds 2005-04-16 257 //nsp_dbg(NSP_DEBUG_QUEUECOMMAND, "out");
^1da177e4c3f41 Linus Torvalds 2005-04-16 258 #ifdef NSP_DEBUG
^1da177e4c3f41 Linus Torvalds 2005-04-16 259 data->CmdId++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 260 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 261 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 262 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 263
:::::: The code at line 224 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
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: 68158 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 9:47 [mkp-scsi:for-next 108/112] drivers/scsi/pcmcia/nsp_cs.c:224:22: error: 'CHECK_CONDITION' undeclared kernel test robot
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.