All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 12285/12841] drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1344:42: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1
@ 2021-10-29 23:16 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-29 23:16 UTC (permalink / raw)
  To: Johannes Berg; +Cc: llvm, kbuild-all, Linux Memory Management List, Luca Coelho

[-- Attachment #1: Type: text/plain, Size: 3445 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bdcc9f6a568275aed4cc32fd2312432d2ff1b704
commit: 3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8 [12285/12841] iwlwifi: pcie: simplify iwl_pci_find_dev_info()
config: arm64-buildonly-randconfig-r004-20211029 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8
        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 3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1344:42: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1 [-Wconstant-conversion]
           for (i = ARRAY_SIZE(iwl_dev_info_table) - 1; i >= 0; i--) {
                  ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   1 warning generated.


vim +1344 drivers/net/wireless/intel/iwlwifi/pcie/drv.c

  1336	
  1337	static const struct iwl_dev_info *
  1338	iwl_pci_find_dev_info(u16 device, u16 subsystem_device,
  1339			      u16 mac_type, u8 mac_step,
  1340			      u16 rf_type, u8 cdb, u8 rf_id, u8 no_160, u8 cores)
  1341	{
  1342		int i;
  1343	
> 1344		for (i = ARRAY_SIZE(iwl_dev_info_table) - 1; i >= 0; i--) {
  1345			const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
  1346	
  1347			if (dev_info->device != (u16)IWL_CFG_ANY &&
  1348			    dev_info->device != device)
  1349				continue;
  1350	
  1351			if (dev_info->subdevice != (u16)IWL_CFG_ANY &&
  1352			    dev_info->subdevice != subsystem_device)
  1353				continue;
  1354	
  1355			if (dev_info->mac_type != (u16)IWL_CFG_ANY &&
  1356			    dev_info->mac_type != mac_type)
  1357				continue;
  1358	
  1359			if (dev_info->mac_step != (u8)IWL_CFG_ANY &&
  1360			    dev_info->mac_step != mac_step)
  1361				continue;
  1362	
  1363			if (dev_info->rf_type != (u16)IWL_CFG_ANY &&
  1364			    dev_info->rf_type != rf_type)
  1365				continue;
  1366	
  1367			if (dev_info->cdb != (u8)IWL_CFG_ANY &&
  1368			    dev_info->cdb != cdb)
  1369				continue;
  1370	
  1371			if (dev_info->rf_id != (u8)IWL_CFG_ANY &&
  1372			    dev_info->rf_id != rf_id)
  1373				continue;
  1374	
  1375			if (dev_info->no_160 != (u8)IWL_CFG_ANY &&
  1376			    dev_info->no_160 != no_160)
  1377				continue;
  1378	
  1379			if (dev_info->cores != (u8)IWL_CFG_ANY &&
  1380			    dev_info->cores != cores)
  1381				continue;
  1382	
  1383			return dev_info;
  1384		}
  1385	
  1386		return NULL;
  1387	}
  1388	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56284 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-next:master 12285/12841] drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1344:42: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1
@ 2021-10-29 23:16 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-29 23:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3534 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bdcc9f6a568275aed4cc32fd2312432d2ff1b704
commit: 3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8 [12285/12841] iwlwifi: pcie: simplify iwl_pci_find_dev_info()
config: arm64-buildonly-randconfig-r004-20211029 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8
        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 3f7320428fa41a4c8be9c6f3d0cc06beeb0b3df8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1344:42: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1 [-Wconstant-conversion]
           for (i = ARRAY_SIZE(iwl_dev_info_table) - 1; i >= 0; i--) {
                  ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   1 warning generated.


vim +1344 drivers/net/wireless/intel/iwlwifi/pcie/drv.c

  1336	
  1337	static const struct iwl_dev_info *
  1338	iwl_pci_find_dev_info(u16 device, u16 subsystem_device,
  1339			      u16 mac_type, u8 mac_step,
  1340			      u16 rf_type, u8 cdb, u8 rf_id, u8 no_160, u8 cores)
  1341	{
  1342		int i;
  1343	
> 1344		for (i = ARRAY_SIZE(iwl_dev_info_table) - 1; i >= 0; i--) {
  1345			const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
  1346	
  1347			if (dev_info->device != (u16)IWL_CFG_ANY &&
  1348			    dev_info->device != device)
  1349				continue;
  1350	
  1351			if (dev_info->subdevice != (u16)IWL_CFG_ANY &&
  1352			    dev_info->subdevice != subsystem_device)
  1353				continue;
  1354	
  1355			if (dev_info->mac_type != (u16)IWL_CFG_ANY &&
  1356			    dev_info->mac_type != mac_type)
  1357				continue;
  1358	
  1359			if (dev_info->mac_step != (u8)IWL_CFG_ANY &&
  1360			    dev_info->mac_step != mac_step)
  1361				continue;
  1362	
  1363			if (dev_info->rf_type != (u16)IWL_CFG_ANY &&
  1364			    dev_info->rf_type != rf_type)
  1365				continue;
  1366	
  1367			if (dev_info->cdb != (u8)IWL_CFG_ANY &&
  1368			    dev_info->cdb != cdb)
  1369				continue;
  1370	
  1371			if (dev_info->rf_id != (u8)IWL_CFG_ANY &&
  1372			    dev_info->rf_id != rf_id)
  1373				continue;
  1374	
  1375			if (dev_info->no_160 != (u8)IWL_CFG_ANY &&
  1376			    dev_info->no_160 != no_160)
  1377				continue;
  1378	
  1379			if (dev_info->cores != (u8)IWL_CFG_ANY &&
  1380			    dev_info->cores != cores)
  1381				continue;
  1382	
  1383			return dev_info;
  1384		}
  1385	
  1386		return NULL;
  1387	}
  1388	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 56284 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-29 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 23:16 [linux-next:master 12285/12841] drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1344:42: warning: implicit conversion from 'unsigned long' to 'int' changes value from 18446744073709551615 to -1 kernel test robot
2021-10-29 23:16 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.