tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6 commit: a31056ddc6651b457d72d8d71d32143764df86d2 [3888/7050] scsi: qla2xxx: Use endian macros to assign static fields in fwdump header reproduce: # apt-get install sparse # sparse version: v0.6.1-174-g094d5a94-dirty git checkout a31056ddc6651b457d72d8d71d32143764df86d2 make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] capture_timestamp @@ got restrunsigned int [usertype] capture_timestamp @@ drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: expected unsigned int [usertype] capture_timestamp drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: got restricted __le32 [usertype] >> drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32unsigned int @@ drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: expected unsigned int drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: got restricted __le32 [usertype] drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32unsigned int @@ drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse: expected unsigned int drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse: got restricted __le32 [usertype] drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32unsigned int @@ drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse: expected unsigned int drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse: got restricted __le32 [usertype] drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32unsigned int @@ drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse: expected unsigned int drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse: got restricted __le32 [usertype] drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32unsigned int @@ drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse: expected unsigned int drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse: got restricted __le32 [usertype] vim +885 drivers/scsi/qla2xxx/qla_tmpl.c 875 876 static void 877 qla27xx_driver_info(struct qla27xx_fwdt_template *tmp) 878 { 879 uint8_t v[] = { 0, 0, 0, 0, 0, 0 }; 880 881 WARN_ON_ONCE(sscanf(qla2x00_version_str, 882 "%hhu.%hhu.%hhu.%hhu.%hhu.%hhu", 883 v+0, v+1, v+2, v+3, v+4, v+5) != 6); 884 > 885 tmp->driver_info[0] = cpu_to_le32( 886 v[3] << 24 | v[2] << 16 | v[1] << 8 | v[0]); 887 tmp->driver_info[1] = cpu_to_le32(v[5] << 8 | v[4]); 888 tmp->driver_info[2] = __constant_cpu_to_le32(0x12345678); 889 } 890 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx