All of lore.kernel.org
 help / color / mirror / Atom feed
* [bvanassche:scsi-remove-request-pointer 22/24] drivers/scsi/gvp11.c:150:43: error: 'cmd' undeclared
@ 2021-05-01 17:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-01 17:54 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3807 bytes --]

tree:   https://github.com/bvanassche/linux scsi-remove-request-pointer
head:   563fdac36cc3a2cfcbd6283088ce44e957ec83b6
commit: 730c55625b5403553fb6efecf72ebfd6f738f5d3 [22/24] gvp11: Stop using scsi_cmnd.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/730c55625b5403553fb6efecf72ebfd6f738f5d3
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-remove-request-pointer
        git checkout 730c55625b5403553fb6efecf72ebfd6f738f5d3
        # 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/gvp11.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/gvp11.c: At top level:
   drivers/scsi/gvp11.c:45:6: warning: no previous prototype for 'gvp11_setup' [-Wmissing-prototypes]
      45 | void gvp11_setup(char *str, int *ints)
         |      ^~~~~~~~~~~
   drivers/scsi/gvp11.c: In function 'dma_stop':
>> drivers/scsi/gvp11.c:150:43: error: 'cmd' undeclared (first use in this function)
     150 |  struct scsi_pointer *SCp = scsi_cmd_priv(cmd);
         |                                           ^~~
   drivers/scsi/gvp11.c:150:43: note: each undeclared identifier is reported only once for each function it appears in


vim +/cmd +150 drivers/scsi/gvp11.c

   146	
   147	static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
   148			     int status)
   149	{
 > 150		struct scsi_pointer *SCp = scsi_cmd_priv(cmd);
   151		struct gvp11_hostdata *hdata = shost_priv(instance);
   152		struct WD33C93_hostdata *wh = &hdata->wh;
   153		struct gvp11_scsiregs *regs = hdata->regs;
   154	
   155		/* stop DMA */
   156		regs->SP_DMA = 1;
   157		/* remove write bit from CONTROL bits */
   158		regs->CNTR = GVP11_DMAC_INT_ENABLE;
   159	
   160		/* copy from a bounce buffer, if necessary */
   161		if (status && wh->dma_bounce_buffer) {
   162			if (wh->dma_dir && SCpnt)
   163				memcpy(SCp->ptr, wh->dma_bounce_buffer,
   164				       SCp->this_residual);
   165	
   166			if (wh->dma_buffer_pool == BUF_SCSI_ALLOCED)
   167				kfree(wh->dma_bounce_buffer);
   168			else
   169				amiga_chip_free(wh->dma_bounce_buffer);
   170	
   171			wh->dma_bounce_buffer = NULL;
   172			wh->dma_bounce_len = 0;
   173		}
   174	}
   175	

---
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: 59854 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-01 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-01 17:54 [bvanassche:scsi-remove-request-pointer 22/24] drivers/scsi/gvp11.c:150: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.