tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b01d57bfdc41c8f635b08b8a5af8a31217d46936 commit: 960984d964a9341cf50bf2b4ffdf0beb14467517 [2744/3213] include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*() config: i386-randconfig-s001-20210309 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-262-g5e674421-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=960984d964a9341cf50bf2b4ffdf0beb14467517 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 960984d964a9341cf50bf2b4ffdf0beb14467517 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 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/lpfc/lpfc_els.c:5612:28: sparse: got restricted __be16 [usertype] drivers/scsi/lpfc/lpfc_els.c:5614:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] flags @@ got restricted __be16 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5614:30: sparse: expected unsigned short [usertype] flags drivers/scsi/lpfc/lpfc_els.c:5614:30: sparse: got restricted __be16 [usertype] drivers/scsi/lpfc/lpfc_els.c:5615:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5615:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5615:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5626:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5626:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5626:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5630:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] port_type @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5630:30: sparse: expected unsigned int [usertype] port_type drivers/scsi/lpfc/lpfc_els.c:5630:30: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5632:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] link_failure_cnt @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5632:49: sparse: expected unsigned int [usertype] link_failure_cnt drivers/scsi/lpfc/lpfc_els.c:5632:49: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5634:50: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] loss_of_synch_cnt @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5634:50: sparse: expected unsigned int [usertype] loss_of_synch_cnt drivers/scsi/lpfc/lpfc_els.c:5634:50: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5636:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] loss_of_signal_cnt @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5636:51: sparse: expected unsigned int [usertype] loss_of_signal_cnt drivers/scsi/lpfc/lpfc_els.c:5636:51: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5638:56: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] primitive_seq_proto_err @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5638:56: sparse: expected unsigned int [usertype] primitive_seq_proto_err drivers/scsi/lpfc/lpfc_els.c:5638:56: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5640:51: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] invalid_trans_word @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5640:51: sparse: expected unsigned int [usertype] invalid_trans_word drivers/scsi/lpfc/lpfc_els.c:5640:51: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5642:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] invalid_crc_cnt @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5642:48: sparse: expected unsigned int [usertype] invalid_crc_cnt drivers/scsi/lpfc/lpfc_els.c:5642:48: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5644:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5644:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5644:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5655:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5655:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5655:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5659:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] port_bbc @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5659:33: sparse: expected unsigned int [usertype] port_bbc drivers/scsi/lpfc/lpfc_els.c:5659:33: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5663:50: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] attached_port_bbc @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5663:50: sparse: expected unsigned int [usertype] attached_port_bbc drivers/scsi/lpfc/lpfc_els.c:5663:50: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5669:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5669:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5669:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5680:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5680:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5680:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5697:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] function_flags @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5697:39: sparse: expected unsigned int [usertype] function_flags drivers/scsi/lpfc/lpfc_els.c:5697:39: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5698:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5698:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5698:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5709:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5709:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5709:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5726:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] function_flags @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5726:39: sparse: expected unsigned int [usertype] function_flags drivers/scsi/lpfc/lpfc_els.c:5726:39: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5727:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5727:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5727:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5738:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5738:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5738:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5755:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] function_flags @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5755:39: sparse: expected unsigned int [usertype] function_flags drivers/scsi/lpfc/lpfc_els.c:5755:39: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5756:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5756:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5756:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5767:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5767:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5767:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5784:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] function_flags @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5784:39: sparse: expected unsigned int [usertype] function_flags drivers/scsi/lpfc/lpfc_els.c:5784:39: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5785:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5785:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5785:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5797:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5797:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5797:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5814:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] function_flags @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5814:39: sparse: expected unsigned int [usertype] function_flags drivers/scsi/lpfc/lpfc_els.c:5814:39: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5815:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5815:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5815:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5823:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5823:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5823:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5829:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5829:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5829:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5838:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5838:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5838:19: sparse: got restricted __be32 [usertype] >> drivers/scsi/lpfc/lpfc_els.c:5840:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] CorrectedBlocks @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5840:36: sparse: expected unsigned int [usertype] CorrectedBlocks drivers/scsi/lpfc/lpfc_els.c:5840:36: sparse: got restricted __be32 [usertype] >> drivers/scsi/lpfc/lpfc_els.c:5842:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] UncorrectableBlocks @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5842:40: sparse: expected unsigned int [usertype] UncorrectableBlocks drivers/scsi/lpfc/lpfc_els.c:5842:40: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5845:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5845:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5845:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5856:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5856:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5856:19: sparse: got restricted __be32 [usertype] >> drivers/scsi/lpfc/lpfc_els.c:5888:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] speed @@ got restricted __be16 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5888:37: sparse: expected unsigned short [usertype] speed drivers/scsi/lpfc/lpfc_els.c:5888:37: sparse: got restricted __be16 [usertype] >> drivers/scsi/lpfc/lpfc_els.c:5914:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] capabilities @@ got restricted __be16 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5914:44: sparse: expected unsigned short [usertype] capabilities drivers/scsi/lpfc/lpfc_els.c:5914:44: sparse: got restricted __be16 [usertype] drivers/scsi/lpfc/lpfc_els.c:5915:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5915:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5915:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5924:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5924:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5924:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5932:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5932:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5932:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5941:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] tag @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5941:19: sparse: expected unsigned int [usertype] tag drivers/scsi/lpfc/lpfc_els.c:5941:19: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:5956:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:5956:22: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:5956:22: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:6047:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@ drivers/scsi/lpfc/lpfc_els.c:6047:25: sparse: expected unsigned int [usertype] length drivers/scsi/lpfc/lpfc_els.c:6047:25: sparse: got restricted __be32 [usertype] drivers/scsi/lpfc/lpfc_els.c:6055:22: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6186:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6195:25: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6197:36: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_els.c:6200:25: sparse: sparse: cast to restricted __be32 >> drivers/scsi/lpfc/lpfc_els.c:6405:17: sparse: sparse: cast to restricted __be16 drivers/scsi/lpfc/lpfc_els.c:6410:21: sparse: sparse: cast to restricted __be16 drivers/scsi/lpfc/lpfc_els.c:6420:17: sparse: sparse: cast to restricted __be16 drivers/scsi/lpfc/lpfc_els.c:6465:9: sparse: sparse: cast to restricted __be16 drivers/scsi/lpfc/lpfc_els.c:6465:9: sparse: sparse: cast to restricted __be16 drivers/scsi/lpfc/lpfc_els.c:6609:31: sparse: sparse: too many warnings -- drivers/scsi/lpfc/lpfc_sli.c:17359:20: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:14622:13: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14623:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14623:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14623:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14623:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14632:16: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:8201:16: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:8204:21: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:8205:23: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:695:13: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:715:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:715:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word3 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:715:17: sparse: expected unsigned int [usertype] word3 drivers/scsi/lpfc/lpfc_sli.c:715:17: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:454:13: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:580:17: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:580:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:580:17: sparse: expected unsigned int [usertype] word0 drivers/scsi/lpfc/lpfc_sli.c:580:17: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:602:24: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:2087:35: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:2189:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:2190:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:2193:35: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:2194:36: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:8655:33: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:8701:41: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9589:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9597:37: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9598:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9598:38: sparse: expected unsigned int [usertype] sge_len drivers/scsi/lpfc/lpfc_sli.c:9598:38: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9615:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9615:36: sparse: expected unsigned int [usertype] word2 drivers/scsi/lpfc/lpfc_sli.c:9615:36: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9624:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9624:38: sparse: expected unsigned int [usertype] addr_hi drivers/scsi/lpfc/lpfc_sli.c:9624:38: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9626:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9626:38: sparse: expected unsigned int [usertype] addr_lo drivers/scsi/lpfc/lpfc_sli.c:9626:38: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9628:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9630:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9630:36: sparse: expected unsigned int [usertype] word2 drivers/scsi/lpfc/lpfc_sli.c:9630:36: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9631:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:9631:38: sparse: expected unsigned int [usertype] sge_len drivers/scsi/lpfc/lpfc_sli.c:9631:38: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:9701:46: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9702:45: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9706:43: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:9710:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:10022:37: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:11354:25: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:11382:25: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:13369:37: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:13381:45: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:14050:16: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:17154:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg0_addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17154:57: sparse: expected unsigned int [usertype] sgl_pg0_addr_lo drivers/scsi/lpfc/lpfc_sli.c:17154:57: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17156:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg0_addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17156:57: sparse: expected unsigned int [usertype] sgl_pg0_addr_hi drivers/scsi/lpfc/lpfc_sli.c:17156:57: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17159:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg1_addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17159:57: sparse: expected unsigned int [usertype] sgl_pg1_addr_lo drivers/scsi/lpfc/lpfc_sli.c:17159:57: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17161:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg1_addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17161:57: sparse: expected unsigned int [usertype] sgl_pg1_addr_hi drivers/scsi/lpfc/lpfc_sli.c:17161:57: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17450:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg0_addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17450:47: sparse: expected unsigned int [usertype] sgl_pg0_addr_lo drivers/scsi/lpfc/lpfc_sli.c:17450:47: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17452:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg0_addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17452:47: sparse: expected unsigned int [usertype] sgl_pg0_addr_hi drivers/scsi/lpfc/lpfc_sli.c:17452:47: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17459:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg1_addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17459:47: sparse: expected unsigned int [usertype] sgl_pg1_addr_lo drivers/scsi/lpfc/lpfc_sli.c:17459:47: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17461:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sgl_pg1_addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17461:47: sparse: expected unsigned int [usertype] sgl_pg1_addr_hi drivers/scsi/lpfc/lpfc_sli.c:17461:47: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17472:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word0 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:17472:20: sparse: expected unsigned int [usertype] word0 drivers/scsi/lpfc/lpfc_sli.c:17472:20: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 drivers/scsi/lpfc/lpfc_sli.c:17694:9: sparse: sparse: cast to restricted __be32 >> drivers/scsi/lpfc/lpfc_sli.c:18311:16: sparse: sparse: restricted __be16 degrades to integer >> drivers/scsi/lpfc/lpfc_sli.c:20004:45: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20004:45: sparse: expected unsigned int drivers/scsi/lpfc/lpfc_sli.c:20004:45: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20370:38: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:20378:37: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:20379:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20379:38: sparse: expected unsigned int [usertype] sge_len drivers/scsi/lpfc/lpfc_sli.c:20379:38: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20413:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20413:36: sparse: expected unsigned int [usertype] word2 drivers/scsi/lpfc/lpfc_sli.c:20413:36: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20422:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_hi @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20422:30: sparse: expected unsigned int [usertype] addr_hi drivers/scsi/lpfc/lpfc_sli.c:20422:30: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20423:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] addr_lo @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20423:30: sparse: expected unsigned int [usertype] addr_lo drivers/scsi/lpfc/lpfc_sli.c:20423:30: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20424:30: sparse: sparse: cast to restricted __le32 drivers/scsi/lpfc/lpfc_sli.c:20426:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word2 @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20426:28: sparse: expected unsigned int [usertype] word2 drivers/scsi/lpfc/lpfc_sli.c:20426:28: sparse: got restricted __le32 [usertype] drivers/scsi/lpfc/lpfc_sli.c:20427:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] sge_len @@ got restricted __le32 [usertype] @@ drivers/scsi/lpfc/lpfc_sli.c:20427:30: sparse: expected unsigned int [usertype] sge_len drivers/scsi/lpfc/lpfc_sli.c:20427:30: sparse: got restricted __le32 [usertype] >> drivers/scsi/lpfc/lpfc_sli.c:12078:36: sparse: sparse: context imbalance in 'lpfc_sli_abort_taskmgmt' - different lock contexts for basic block vim +5840 drivers/scsi/lpfc/lpfc_els.c 56204984761d80 James Smart 2016-03-31 5832 bd4b3e5c8adf2b Baoyou Xie 2016-09-25 5833 static uint32_t 4258e98ee3862c James Smart 2015-12-16 5834 lpfc_rdp_res_fec_desc(struct fc_fec_rdp_desc *desc, READ_LNK_VAR *stat) 4258e98ee3862c James Smart 2015-12-16 5835 { 4258e98ee3862c James Smart 2015-12-16 5836 if (bf_get(lpfc_read_link_stat_gec2, stat) == 0) 4258e98ee3862c James Smart 2015-12-16 5837 return 0; 4258e98ee3862c James Smart 2015-12-16 5838 desc->tag = cpu_to_be32(RDP_FEC_DESC_TAG); 4258e98ee3862c James Smart 2015-12-16 5839 4258e98ee3862c James Smart 2015-12-16 @5840 desc->info.CorrectedBlocks = 4258e98ee3862c James Smart 2015-12-16 5841 cpu_to_be32(stat->fecCorrBlkCount); 4258e98ee3862c James Smart 2015-12-16 @5842 desc->info.UncorrectableBlocks = 4258e98ee3862c James Smart 2015-12-16 5843 cpu_to_be32(stat->fecUncorrBlkCount); 4258e98ee3862c James Smart 2015-12-16 5844 4258e98ee3862c James Smart 2015-12-16 5845 desc->length = cpu_to_be32(sizeof(desc->info)); 4258e98ee3862c James Smart 2015-12-16 5846 4258e98ee3862c James Smart 2015-12-16 5847 return sizeof(struct fc_fec_rdp_desc); 4258e98ee3862c James Smart 2015-12-16 5848 } 4258e98ee3862c James Smart 2015-12-16 5849 bd4b3e5c8adf2b Baoyou Xie 2016-09-25 5850 static uint32_t 86478875eb4d2e James Smart 2015-05-21 5851 lpfc_rdp_res_speed(struct fc_rdp_port_speed_desc *desc, struct lpfc_hba *phba) 86478875eb4d2e James Smart 2015-05-21 5852 { 86478875eb4d2e James Smart 2015-05-21 5853 uint16_t rdp_cap = 0; 86478875eb4d2e James Smart 2015-05-21 5854 uint16_t rdp_speed; 86478875eb4d2e James Smart 2015-05-21 5855 86478875eb4d2e James Smart 2015-05-21 5856 desc->tag = cpu_to_be32(RDP_PORT_SPEED_DESC_TAG); 86478875eb4d2e James Smart 2015-05-21 5857 81e7517723fc17 James Smart 2015-12-16 5858 switch (phba->fc_linkspeed) { 81e7517723fc17 James Smart 2015-12-16 5859 case LPFC_LINK_SPEED_1GHZ: 86478875eb4d2e James Smart 2015-05-21 5860 rdp_speed = RDP_PS_1GB; 86478875eb4d2e James Smart 2015-05-21 5861 break; 81e7517723fc17 James Smart 2015-12-16 5862 case LPFC_LINK_SPEED_2GHZ: 86478875eb4d2e James Smart 2015-05-21 5863 rdp_speed = RDP_PS_2GB; 86478875eb4d2e James Smart 2015-05-21 5864 break; 81e7517723fc17 James Smart 2015-12-16 5865 case LPFC_LINK_SPEED_4GHZ: 86478875eb4d2e James Smart 2015-05-21 5866 rdp_speed = RDP_PS_4GB; 86478875eb4d2e James Smart 2015-05-21 5867 break; 81e7517723fc17 James Smart 2015-12-16 5868 case LPFC_LINK_SPEED_8GHZ: 86478875eb4d2e James Smart 2015-05-21 5869 rdp_speed = RDP_PS_8GB; 86478875eb4d2e James Smart 2015-05-21 5870 break; 81e7517723fc17 James Smart 2015-12-16 5871 case LPFC_LINK_SPEED_10GHZ: 86478875eb4d2e James Smart 2015-05-21 5872 rdp_speed = RDP_PS_10GB; 86478875eb4d2e James Smart 2015-05-21 5873 break; 81e7517723fc17 James Smart 2015-12-16 5874 case LPFC_LINK_SPEED_16GHZ: 86478875eb4d2e James Smart 2015-05-21 5875 rdp_speed = RDP_PS_16GB; 86478875eb4d2e James Smart 2015-05-21 5876 break; a085e87c814567 James Smart 2015-12-16 5877 case LPFC_LINK_SPEED_32GHZ: a085e87c814567 James Smart 2015-12-16 5878 rdp_speed = RDP_PS_32GB; a085e87c814567 James Smart 2015-12-16 5879 break; fbd8a6ba65443a James Smart 2018-02-22 5880 case LPFC_LINK_SPEED_64GHZ: fbd8a6ba65443a James Smart 2018-02-22 5881 rdp_speed = RDP_PS_64GB; fbd8a6ba65443a James Smart 2018-02-22 5882 break; 86478875eb4d2e James Smart 2015-05-21 5883 default: 86478875eb4d2e James Smart 2015-05-21 5884 rdp_speed = RDP_PS_UNKNOWN; 86478875eb4d2e James Smart 2015-05-21 5885 break; 86478875eb4d2e James Smart 2015-05-21 5886 } 86478875eb4d2e James Smart 2015-05-21 5887 86478875eb4d2e James Smart 2015-05-21 @5888 desc->info.port_speed.speed = cpu_to_be16(rdp_speed); 86478875eb4d2e James Smart 2015-05-21 5889 1dc5ec2452025c James Smart 2018-10-23 5890 if (phba->lmt & LMT_128Gb) 1dc5ec2452025c James Smart 2018-10-23 5891 rdp_cap |= RDP_PS_128GB; fbd8a6ba65443a James Smart 2018-02-22 5892 if (phba->lmt & LMT_64Gb) fbd8a6ba65443a James Smart 2018-02-22 5893 rdp_cap |= RDP_PS_64GB; d38dd52c79bc11 James Smart 2015-08-31 5894 if (phba->lmt & LMT_32Gb) d38dd52c79bc11 James Smart 2015-08-31 5895 rdp_cap |= RDP_PS_32GB; 86478875eb4d2e James Smart 2015-05-21 5896 if (phba->lmt & LMT_16Gb) 86478875eb4d2e James Smart 2015-05-21 5897 rdp_cap |= RDP_PS_16GB; 86478875eb4d2e James Smart 2015-05-21 5898 if (phba->lmt & LMT_10Gb) 86478875eb4d2e James Smart 2015-05-21 5899 rdp_cap |= RDP_PS_10GB; 86478875eb4d2e James Smart 2015-05-21 5900 if (phba->lmt & LMT_8Gb) 86478875eb4d2e James Smart 2015-05-21 5901 rdp_cap |= RDP_PS_8GB; 86478875eb4d2e James Smart 2015-05-21 5902 if (phba->lmt & LMT_4Gb) 86478875eb4d2e James Smart 2015-05-21 5903 rdp_cap |= RDP_PS_4GB; 86478875eb4d2e James Smart 2015-05-21 5904 if (phba->lmt & LMT_2Gb) 86478875eb4d2e James Smart 2015-05-21 5905 rdp_cap |= RDP_PS_2GB; 86478875eb4d2e James Smart 2015-05-21 5906 if (phba->lmt & LMT_1Gb) 86478875eb4d2e James Smart 2015-05-21 5907 rdp_cap |= RDP_PS_1GB; 86478875eb4d2e James Smart 2015-05-21 5908 86478875eb4d2e James Smart 2015-05-21 5909 if (rdp_cap == 0) 86478875eb4d2e James Smart 2015-05-21 5910 rdp_cap = RDP_CAP_UNKNOWN; 56204984761d80 James Smart 2016-03-31 5911 if (phba->cfg_link_speed != LPFC_USER_LINK_SPEED_AUTO) 56204984761d80 James Smart 2016-03-31 5912 rdp_cap |= RDP_CAP_USER_CONFIGURED; 86478875eb4d2e James Smart 2015-05-21 5913 86478875eb4d2e James Smart 2015-05-21 @5914 desc->info.port_speed.capabilities = cpu_to_be16(rdp_cap); 86478875eb4d2e James Smart 2015-05-21 5915 desc->length = cpu_to_be32(sizeof(desc->info)); 6c92d1d0ce4eff James Smart 2016-07-06 5916 return sizeof(struct fc_rdp_port_speed_desc); 86478875eb4d2e James Smart 2015-05-21 5917 } 86478875eb4d2e James Smart 2015-05-21 5918 :::::: The code at line 5840 was first introduced by commit :::::: 4258e98ee3862ca7036654b43c839ab7668043e0 lpfc: Modularize and cleanup FDMI code in driver :::::: TO: James Smart <james.smart@xxxxxxxxxxxxx> :::::: CC: Martin K. Petersen <martin.petersen@xxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip