Hi Chandrakanth, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.12-rc3] [cannot apply to mkp-scsi/for-next scsi/for-next next-20210317] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Chandrakanth-Patil/megaraid_sas-Update-driver-version-to-07-717-01-00-rc1/20210318-031205 base: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 config: x86_64-randconfig-s022-20210317 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-277-gc089cd2d-dirty # https://github.com/0day-ci/linux/commit/dadb835ed01309bcd9a8d51a01ad4467dc71aea6 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Chandrakanth-Patil/megaraid_sas-Update-driver-version-to-07-717-01-00-rc1/20210318-031205 git checkout dadb835ed01309bcd9a8d51a01ad4467dc71aea6 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) drivers/scsi/megaraid/megaraid_sas_base.c:117:5: sparse: sparse: symbol 'host_tagset_enable' was not declared. Should it be static? drivers/scsi/megaraid/megaraid_sas_base.c:4605:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:4605:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:4605:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:4856:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:4856:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:4856:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:6671:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:6671:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:6671:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:4512:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:4512:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:4512:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:282:31: sparse: sparse: restricted __le16 degrades to integer drivers/scsi/megaraid/megaraid_sas_base.c:288:31: sparse: sparse: cast from restricted __le16 drivers/scsi/megaraid/megaraid_sas_base.c:414:29: sparse: sparse: cast to restricted __le32 drivers/scsi/megaraid/megaraid_sas_base.c:1224:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] opcode @@ got restricted __le32 [usertype] opcode @@ drivers/scsi/megaraid/megaraid_sas_base.c:1224:32: sparse: expected unsigned int [usertype] opcode drivers/scsi/megaraid/megaraid_sas_base.c:1224:32: sparse: got restricted __le32 [usertype] opcode drivers/scsi/megaraid/megaraid_sas_base.c:2003:33: sparse: sparse: cast to restricted __le32 drivers/scsi/megaraid/megaraid_sas_base.c:2044:34: sparse: sparse: cast to restricted __le32 >> drivers/scsi/megaraid/megaraid_sas_base.c:3502:1: sparse: sparse: symbol 'megasas_set_sdev_removed_by_fw' was not declared. Should it be static? drivers/scsi/megaraid/megaraid_sas_base.c:4736:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:4736:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:4736:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:4975:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:4975:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:4975:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:5160:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:5160:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:5160:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:5242:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:5242:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:5242:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:6224:42: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/megaraid/megaraid_sas_base.c:6223:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned int [noderef] [usertype] __iomem * @@ got unsigned int [usertype] * @@ drivers/scsi/megaraid/megaraid_sas_base.c:6223:57: sparse: expected unsigned int [noderef] [usertype] __iomem * drivers/scsi/megaraid/megaraid_sas_base.c:6223:57: sparse: got unsigned int [usertype] * drivers/scsi/megaraid/megaraid_sas_base.c:6228:34: sparse: sparse: cast removes address space '__iomem' of expression drivers/scsi/megaraid/megaraid_sas_base.c:6227:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned int [noderef] [usertype] __iomem * @@ got unsigned int [usertype] * @@ drivers/scsi/megaraid/megaraid_sas_base.c:6227:57: sparse: expected unsigned int [noderef] [usertype] __iomem * drivers/scsi/megaraid/megaraid_sas_base.c:6227:57: sparse: got unsigned int [usertype] * drivers/scsi/megaraid/megaraid_sas_base.c:6535:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:6535:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:6535:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:6749:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] flags @@ got int @@ drivers/scsi/megaraid/megaraid_sas_base.c:6749:21: sparse: expected restricted __le16 [usertype] flags drivers/scsi/megaraid/megaraid_sas_base.c:6749:21: sparse: got int drivers/scsi/megaraid/megaraid_sas_base.c:7505:44: sparse: sparse: restricted __le32 degrades to integer drivers/scsi/megaraid/megaraid_sas_base.c:8122:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected int crash_support @@ got restricted __le32 @@ drivers/scsi/megaraid/megaraid_sas_base.c:8122:23: sparse: expected int crash_support drivers/scsi/megaraid/megaraid_sas_base.c:8122:23: sparse: got restricted __le32 drivers/scsi/megaraid/megaraid_sas_base.c:8206:31: sparse: sparse: invalid assignment: &= drivers/scsi/megaraid/megaraid_sas_base.c:8206:31: sparse: left side has type restricted __le16 drivers/scsi/megaraid/megaraid_sas_base.c:8206:31: sparse: right side has type int drivers/scsi/megaraid/megaraid_sas_base.c:8739:46: sparse: sparse: restricted __le32 degrades to integer Please review and possibly fold the followup patch. --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip