From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1406468463080015414==" MIME-Version: 1.0 From: kernel test robot 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 Message-ID: <202202101815.2JlOiZan-lkp@intel.com> List-Id: --===============1406468463080015414== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/2= 02202101815.2JlOiZan-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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 m= ember named 'cmd' 1025 | return atapi_cmd_type(scsi_req(rq)->cmd[0]) =3D=3D ATAPI= _MISC; | ^~ drivers/ata/libata-scsi.c:1026:1: error: control reaches end of non-void= function [-Werror=3Dreturn-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]) =3D=3D 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 o= ut of struct request :::::: TO: Christoph Hellwig :::::: CC: Jens Axboe --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1406468463080015414==--