[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007171436.E7bHXrcu%lkp@intel.com>
Date: Fri, 17 Jul 2020 14:28:00 +0800
From: kernel test robot <lkp@...el.com>
To: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/net/wireless/cisco/airo.c:2420:43: sparse: sparse: incorrect
type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 07a56bb875afbe39dabbf6ba7b83783d166863db
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 4 weeks ago
config: openrisc-randconfig-s032-20200717 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-49-g707c5017-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
drivers/net/wireless/cisco/airo.c:3879:35: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:3879:35: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:3879:35: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:2050:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] status @@ got unsigned short [usertype] status @@
drivers/net/wireless/cisco/airo.c:2050:24: sparse: expected restricted __le16 [usertype] status
drivers/net/wireless/cisco/airo.c:2050:24: sparse: got unsigned short [usertype] status
>> drivers/net/wireless/cisco/airo.c:2420:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pcimem @@
drivers/net/wireless/cisco/airo.c:2420:43: sparse: expected void *addr
>> drivers/net/wireless/cisco/airo.c:2420:43: sparse: got unsigned char [noderef] __iomem *pcimem
>> drivers/net/wireless/cisco/airo.c:2422:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pciaux @@
drivers/net/wireless/cisco/airo.c:2422:43: sparse: expected void *addr
>> drivers/net/wireless/cisco/airo.c:2422:43: sparse: got unsigned char [noderef] __iomem *pciaux
drivers/net/wireless/cisco/airo.c:2638:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pciaux @@
drivers/net/wireless/cisco/airo.c:2638:19: sparse: expected void *addr
drivers/net/wireless/cisco/airo.c:2638:19: sparse: got unsigned char [noderef] __iomem *pciaux
drivers/net/wireless/cisco/airo.c:2640:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pcimem @@
drivers/net/wireless/cisco/airo.c:2640:19: sparse: expected void *addr
drivers/net/wireless/cisco/airo.c:2640:19: sparse: got unsigned char [noderef] __iomem *pcimem
drivers/net/wireless/cisco/airo.c:2923:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pciaux @@
drivers/net/wireless/cisco/airo.c:2923:27: sparse: expected void *addr
drivers/net/wireless/cisco/airo.c:2923:27: sparse: got unsigned char [noderef] __iomem *pciaux
drivers/net/wireless/cisco/airo.c:2924:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got unsigned char [noderef] __iomem *pcimem @@
drivers/net/wireless/cisco/airo.c:2924:27: sparse: expected void *addr
drivers/net/wireless/cisco/airo.c:2924:27: sparse: got unsigned char [noderef] __iomem *pcimem
drivers/net/wireless/cisco/airo.c:3250:18: sparse: sparse: cast to restricted __le16
drivers/net/wireless/cisco/airo.c:3250:18: sparse: sparse: cast to restricted __le16
drivers/net/wireless/cisco/airo.c:3250:18: sparse: sparse: cast to restricted __le16
drivers/net/wireless/cisco/airo.c:3250:18: sparse: sparse: cast to restricted __le16
drivers/net/wireless/cisco/airo.c:4889:51: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:4889:51: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:4889:51: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:4892:51: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:4892:51: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:4892:51: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:4895:51: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:4895:51: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:4895:51: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6363:46: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6363:46: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6363:46: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6383:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6383:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6383:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6385:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6385:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6385:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6387:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6387:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6387:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6543:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6543:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6543:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6545:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6545:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6545:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6547:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6547:38: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6547:38: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6652:54: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6652:54: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6652:54: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6654:46: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6654:46: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6654:46: sparse: got restricted __le16 [usertype]
drivers/net/wireless/cisco/airo.c:6664:54: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int auth_type @@ got restricted __le16 [usertype] @@
drivers/net/wireless/cisco/airo.c:6664:54: sparse: expected int auth_type
drivers/net/wireless/cisco/airo.c:6664:54: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:511:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:511:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:511:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:477:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:477:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:477:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:477:15: sparse: sparse: cast to restricted __le16
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
drivers/net/wireless/cisco/airo.c:3801:26: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3801:52: sparse: sparse: restricted __le16 degrades to integer
drivers/net/wireless/cisco/airo.c:3797:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] authType @@ got int auth_type @@
drivers/net/wireless/cisco/airo.c:3797:32: sparse: expected restricted __le16 [usertype] authType
drivers/net/wireless/cisco/airo.c:3797:32: sparse: got int auth_type
--
>> drivers/net/can/cc770/cc770_platform.c:226:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[assigned] base @@
drivers/net/can/cc770/cc770_platform.c:226:17: sparse: expected void *addr
>> drivers/net/can/cc770/cc770_platform.c:226:17: sparse: got void [noderef] __iomem *[assigned] base
>> drivers/net/can/cc770/cc770_platform.c:240:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *reg_base @@
drivers/net/can/cc770/cc770_platform.c:240:21: sparse: expected void *addr
>> drivers/net/can/cc770/cc770_platform.c:240:21: sparse: got void [noderef] __iomem *reg_base
--
>> net/atm/mpoa_proc.c:223:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
net/atm/mpoa_proc.c:223:21: sparse: expected char const *__gu_addr
>> net/atm/mpoa_proc.c:223:21: sparse: got char const [noderef] __user *
vim +2420 drivers/net/wireless/cisco/airo.c
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2381
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2382 void stop_airo_card( struct net_device *dev, int freeres )
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2383 {
faf3994a9f65fd drivers/net/wireless/airo.c Wang Chen 2008-10-14 2384 struct airo_info *ai = dev->ml_priv;
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2385
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2386 set_bit(FLAG_RADIO_DOWN, &ai->flags);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2387 disable_MAC(ai, 1);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2388 disable_interrupts(ai);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2389 takedown_proc_entry( dev, ai );
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2390 if (test_bit(FLAG_REGISTERED, &ai->flags)) {
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2391 unregister_netdev( dev );
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2392 if (ai->wifidev) {
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2393 unregister_netdev(ai->wifidev);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2394 free_netdev(ai->wifidev);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2395 ai->wifidev = NULL;
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2396 }
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2397 clear_bit(FLAG_REGISTERED, &ai->flags);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2398 }
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2399 /*
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2400 * Clean out tx queue
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2401 */
b03efcfb218028 drivers/net/wireless/airo.c David S. Miller 2005-07-08 2402 if (test_bit(FLAG_MPI, &ai->flags) && !skb_queue_empty(&ai->txq)) {
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2403 struct sk_buff *skb = NULL;
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2404 for (;(skb = skb_dequeue(&ai->txq));)
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2405 dev_kfree_skb(skb);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2406 }
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2407
9e75af30d529d5 drivers/net/wireless/airo.c Dan Williams 2006-03-16 2408 airo_networks_free (ai);
9e75af30d529d5 drivers/net/wireless/airo.c Dan Williams 2006-03-16 2409
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2410 kfree(ai->flash);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2411 kfree(ai->rssi);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2412 kfree(ai->SSID);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2413 if (freeres) {
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2414 /* PCMCIA frees this stuff, so only for PCI and ISA */
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2415 release_region( dev->base_addr, 64 );
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2416 if (test_bit(FLAG_MPI, &ai->flags)) {
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2417 if (ai->pci)
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2418 mpi_unmap_card(ai->pci);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2419 if (ai->pcimem)
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 @2420 iounmap(ai->pcimem);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2421 if (ai->pciaux)
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 @2422 iounmap(ai->pciaux);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2423 pci_free_consistent(ai->pci, PCI_SHARED_LEN,
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2424 ai->shared, ai->shared_dma);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2425 }
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2426 }
e5db0ad7563c38 drivers/net/wireless/cisco/airo.c Ard Biesheuvel 2019-06-17 2427 crypto_free_sync_skcipher(ai->tfm);
af5b5c9aa92ced drivers/net/wireless/airo.c Michal Schmidt 2007-03-16 2428 del_airo_dev(ai);
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2429 free_netdev( dev );
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2430 }
^1da177e4c3f41 drivers/net/wireless/airo.c Linus Torvalds 2005-04-16 2431
:::::: The code at line 2420 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (26435 bytes)
Powered by blists - more mailing lists