[linux-nvme:nvme-5.17 1/2] drivers/nvme/host/tcp.c:920:25: sparse: sparse: incorrect type in argument 2 (different base types)

kernel test robot lkp at intel.com
Wed Feb 9 05:37:01 PST 2022


tree:   git://git.infradead.org/nvme.git nvme-5.17
head:   5c66f610f0be01358a3bb037fce6ae5744e225d2
commit: 52100021775a35eef08e493acabe3deb31847cb8 [1/2] nvme-tcp: fix bogus request completion when failing to send AER
config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220209/202202092122.25VLa0rQ-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        git remote add linux-nvme git://git.infradead.org/nvme.git
        git fetch --no-tags linux-nvme nvme-5.17
        git checkout 52100021775a35eef08e493acabe3deb31847cb8
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvme/host/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/nvme/host/tcp.c:920:25: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected restricted __le16 [usertype] status @@     got int @@
   drivers/nvme/host/tcp.c:920:25: sparse:     expected restricted __le16 [usertype] status
   drivers/nvme/host/tcp.c:920:25: sparse:     got int

vim +920 drivers/nvme/host/tcp.c

   913	
   914	static void nvme_tcp_fail_request(struct nvme_tcp_request *req)
   915	{
   916		if (nvme_tcp_async_req(req)) {
   917			union nvme_result res = {};
   918	
   919			nvme_complete_async_event(&req->queue->ctrl->ctrl,
 > 920				NVME_SC_HOST_PATH_ERROR, &res);
   921		} else {
   922			nvme_tcp_end_request(blk_mq_rq_from_pdu(req),
   923					NVME_SC_HOST_PATH_ERROR);
   924		}
   925	}
   926	

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



More information about the Linux-nvme mailing list