* [bvanassche:scsi-remove-request-pointer 5/5] drivers/scsi/a2091.c:111:43: error: 'cmd' undeclared
@ 2021-04-29 23:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-29 23:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3929 bytes --]
tree: https://github.com/bvanassche/linux scsi-remove-request-pointer
head: 29371693c91457d86000b09d80a31b19b03a3675
commit: 29371693c91457d86000b09d80a31b19b03a3675 [5/5] llds-stop-using-SCp
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/bvanassche/linux/commit/29371693c91457d86000b09d80a31b19b03a3675
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-remove-request-pointer
git checkout 29371693c91457d86000b09d80a31b19b03a3675
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k
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/init.h:5,
from drivers/scsi/a2091.c:3:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/scsi/a2091.c: In function 'dma_stop':
>> drivers/scsi/a2091.c:111:43: error: 'cmd' undeclared (first use in this function)
111 | struct scsi_pointer *SCp = scsi_cmd_priv(cmd);
| ^~~
drivers/scsi/a2091.c:111:43: note: each undeclared identifier is reported only once for each function it appears in
vim +/cmd +111 drivers/scsi/a2091.c
107
108 static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
109 int status)
110 {
> 111 struct scsi_pointer *SCp = scsi_cmd_priv(cmd);
112 struct a2091_hostdata *hdata = shost_priv(instance);
113 struct WD33C93_hostdata *wh = &hdata->wh;
114 struct a2091_scsiregs *regs = hdata->regs;
115
116 /* disable SCSI interrupts */
117 unsigned short cntr = CNTR_PDMD;
118
119 if (!wh->dma_dir)
120 cntr |= CNTR_DDIR;
121
122 /* disable SCSI interrupts */
123 regs->CNTR = cntr;
124
125 /* flush if we were reading */
126 if (wh->dma_dir) {
127 regs->FLUSH = 1;
128 while (!(regs->ISTR & ISTR_FE_FLG))
129 ;
130 }
131
132 /* clear a possible interrupt */
133 regs->CINT = 1;
134
135 /* stop DMA */
136 regs->SP_DMA = 1;
137
138 /* restore the CONTROL bits (minus the direction flag) */
139 regs->CNTR = CNTR_PDMD | CNTR_INTEN;
140
141 /* copy from a bounce buffer, if necessary */
142 if (status && wh->dma_bounce_buffer) {
143 if (wh->dma_dir)
144 memcpy(SCp->ptr, wh->dma_bounce_buffer,
145 SCp->this_residual);
146 kfree(wh->dma_bounce_buffer);
147 wh->dma_bounce_buffer = NULL;
148 wh->dma_bounce_len = 0;
149 }
150 }
151
---
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: 59764 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-29 23:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 23:57 [bvanassche:scsi-remove-request-pointer 5/5] drivers/scsi/a2091.c:111:43: error: 'cmd' 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.