tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bb5baaa9238ecf8f13b112232c7bbe0d3d598ee8
commit: d6f2134a383168bfb28ac458f7e4311e58482439 iwlwifi: add mac/rf types and 160MHz to
the device tables
date: 5 months ago
config: parisc-randconfig-m031-20200811 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1049 iwl_pci_probe() warn: mask and shift to
zero
Old smatch warnings:
drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1035 iwl_pci_probe() warn: we never enter
this loop
vim +1049 drivers/net/wireless/intel/iwlwifi/pcie/drv.c
1003
1004 static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1005 {
1006 const struct iwl_cfg_trans_params *trans =
1007 (struct iwl_cfg_trans_params *)(ent->driver_data);
1008 const struct iwl_cfg *cfg_7265d __maybe_unused = NULL;
1009 struct iwl_trans *iwl_trans;
1010 struct iwl_trans_pcie *trans_pcie;
1011 unsigned long flags;
1012 int i, ret;
1013 /*
1014 * This is needed for backwards compatibility with the old
1015 * tables, so we don't need to change all the config structs
1016 * at the same time. The cfg is used to compare with the old
1017 * full cfg structs.
1018 */
1019 const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data);
1020
1021 /* make sure trans is the first element in iwl_cfg */
1022 BUILD_BUG_ON(offsetof(struct iwl_cfg, trans));
1023
1024 iwl_trans = iwl_trans_pcie_alloc(pdev, ent, trans);
1025 if (IS_ERR(iwl_trans))
1026 return PTR_ERR(iwl_trans);
1027
1028 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans);
1029
1030 /* the trans_cfg should never change, so set it now */
1031 iwl_trans->trans_cfg = trans;
1032
1033 iwl_trans->hw_rf_id = iwl_read32(iwl_trans, CSR_HW_RF_ID);
1034
1035 for (i = 0; i < ARRAY_SIZE(iwl_dev_info_table); i++) {
1036 const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
1037 if ((dev_info->device == (u16)IWL_CFG_ANY ||
1038 dev_info->device == pdev->device) &&
1039 (dev_info->subdevice == (u16)IWL_CFG_ANY ||
1040 dev_info->subdevice == pdev->subsystem_device) &&
1041 (dev_info->mac_type == (u16)IWL_CFG_ANY ||
1042 dev_info->mac_type ==
1043 CSR_HW_REV_TYPE(iwl_trans->hw_rev)) &&
1044 (dev_info->rf_type == (u16)IWL_CFG_ANY ||
1045 dev_info->rf_type ==
1046 CSR_HW_RFID_TYPE(iwl_trans->hw_rf_id)) &&
1047 (dev_info->no_160 == (u8)IWL_CFG_ANY ||
1048 dev_info->no_160 ==
1049 IWL_SUBDEVICE_NO_160(pdev->subsystem_device))) {
1050 iwl_trans->cfg = dev_info->cfg;
1051 iwl_trans->name = dev_info->name;
1052 goto found;
1053 }
1054 }
1055
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org