All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:remove-scsi_request 3/3] drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd'
@ 2022-02-10 10:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-10 10:43 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git remove-scsi_request
head:   5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
commit: 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0 [3/3] scsi: remove the cdb field from struct scsi_request
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220210/202202101815.2JlOiZan-lkp(a)intel.com/config)
compiler: alpha-linux-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
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc remove-scsi_request
        git checkout 5677caa4ec3d9eab6e96ed17cd19f3b82589caf0
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/

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/ata/libata-scsi.c: In function 'ata_scsi_dma_need_drain':
>> drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd'
    1025 |         return atapi_cmd_type(scsi_req(rq)->cmd[0]) == ATAPI_MISC;
         |                                           ^~
   drivers/ata/libata-scsi.c:1026:1: error: control reaches end of non-void function [-Werror=return-type]
    1026 | }
         | ^
   cc1: some warnings being treated as errors


vim +1025 drivers/ata/libata-scsi.c

^1da177e4c3f41 drivers/scsi/libata-scsi.c Linus Torvalds        2005-04-16  1007  
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1008  /**
94bd5719e49156 drivers/ata/libata-scsi.c  Mauro Carvalho Chehab 2020-10-23  1009   *	ata_scsi_dma_need_drain - Check whether data transfer may overflow
73fd8b6d310196 drivers/ata/libata-scsi.c  Randy Dunlap          2008-02-19  1010   *	@rq: request to be checked
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1011   *
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1012   *	ATAPI commands which transfer variable length data to host
c9b5560aac7aa7 drivers/ata/libata-scsi.c  Masanari Iida         2016-04-13  1013   *	might overflow due to application error or hardware bug.  This
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1014   *	function checks whether overflow should be drained and ignored
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1015   *	for @request.
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1016   *
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1017   *	LOCKING:
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1018   *	None.
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1019   *
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1020   *	RETURNS:
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1021   *	1 if ; otherwise, 0.
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1022   */
cc97923a5bccc7 drivers/ata/libata-scsi.c  Christoph Hellwig     2020-04-14  1023  bool ata_scsi_dma_need_drain(struct request *rq)
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1024  {
82ed4db499b859 drivers/ata/libata-scsi.c  Christoph Hellwig     2017-01-27 @1025  	return atapi_cmd_type(scsi_req(rq)->cmd[0]) == ATAPI_MISC;
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1026  }
cc97923a5bccc7 drivers/ata/libata-scsi.c  Christoph Hellwig     2020-04-14  1027  EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
fa2fc7f4813bfe drivers/ata/libata-scsi.c  James Bottomley       2008-02-19  1028  

:::::: The code at line 1025 was first introduced by commit
:::::: 82ed4db499b8598f16f8871261bff088d6b0597f block: split scsi_request out of struct request

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@fb.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2022-02-10 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 10:43 [hch-misc:remove-scsi_request 3/3] drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd' 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.