[linux-nvme:nvme-5.15 6/8] drivers/nvme/host/core.c:1298:33: sparse: sparse: restricted __le32 degrades to integer

kernel test robot lkp at intel.com
Wed Sep 1 07:05:59 PDT 2021


tree:   git://git.infradead.org/nvme.git nvme-5.15
head:   b557f3040bfd1346659cd0e4d8d65b9d04eb92be
commit: 37bc671229b32e6958fcd4cefb643deabcdd4e94 [6/8] nvme: update keep alive interval when kato is modified
config: i386-randconfig-s032-20210901 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        git remote add linux-nvme git://git.infradead.org/nvme.git
        git fetch --no-tags linux-nvme nvme-5.15
        git checkout 37bc671229b32e6958fcd4cefb643deabcdd4e94
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 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/core.c:1298:33: sparse: sparse: restricted __le32 degrades to integer
   drivers/nvme/host/core.c:1176:36: sparse: sparse: restricted __le32 degrades to integer

vim +1298 drivers/nvme/host/core.c

  1294	
  1295	static void nvme_update_keep_alive(struct nvme_ctrl *ctrl,
  1296					   struct nvme_command *cmd)
  1297	{
> 1298		unsigned int new_kato = DIV_ROUND_UP(cmd->common.cdw11, 1000);
  1299	
  1300		dev_info(ctrl->device,
  1301			 "keep alive interval updated from %u ms to %u ms\n",
  1302			 ctrl->kato * 1000 / 2, new_kato * 1000 / 2);
  1303	
  1304		nvme_stop_keep_alive(ctrl);
  1305		ctrl->kato = new_kato;
  1306		nvme_start_keep_alive(ctrl);
  1307	}
  1308	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 40893 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20210901/7d70cb50/attachment-0001.gz>


More information about the Linux-nvme mailing list