All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:remove-scsi_request 3/3] drivers/ata/libata-scsi.c:1025:43: error: 'struct scsi_request' has no member named 'cmd'
Date: Thu, 10 Feb 2022 18:43:20 +0800	[thread overview]
Message-ID: <202202101815.2JlOiZan-lkp@intel.com> (raw)

[-- 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

                 reply	other threads:[~2022-02-10 10:43 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=202202101815.2JlOiZan-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.