CC: [email protected] CC: [email protected] TO: Stafford Horne <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7f75285ca572eaabc028cf78c6ab5473d0d160be commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures date: 8 months ago :::::: branch date: 13 hours ago :::::: commit date: 8 months ago config: ia64-randconfig-s032-20210415 (attached as .config) compiler: ia64-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.3-280-g2cd6d34e-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1d55d50139bea6bfe964458272a93dd899efb83 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout c1d55d50139bea6bfe964458272a93dd899efb83 # 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__' W=1 ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) drivers/atm/nicstar.c:542:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:542:17: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:542:17: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:561:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_4 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:561:17: sparse: expected unsigned int [usertype] word_4 drivers/atm/nicstar.c:561:17: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1149:29: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1154:56: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1484:30: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1490:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_1 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1490:44: sparse: expected unsigned int [usertype] word_1 drivers/atm/nicstar.c:1490:44: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1493:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1493:44: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1493:44: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1673:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1673:29: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1673:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1674:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_3 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1674:29: sparse: expected unsigned int [usertype] word_3 drivers/atm/nicstar.c:1674:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1675:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_4 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1675:29: sparse: expected unsigned int [usertype] word_4 drivers/atm/nicstar.c:1675:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1684:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1684:29: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1684:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1685:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_3 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1685:29: sparse: expected unsigned int [usertype] word_3 drivers/atm/nicstar.c:1685:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1688:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_4 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1688:29: sparse: expected unsigned int [usertype] word_4 drivers/atm/nicstar.c:1688:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1691:29: sparse: sparse: invalid assignment: |= drivers/atm/nicstar.c:1691:29: sparse: left side has type unsigned int drivers/atm/nicstar.c:1691:29: sparse: right side has type restricted __le32 drivers/atm/nicstar.c:1699:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_1 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1699:29: sparse: expected unsigned int [usertype] word_1 drivers/atm/nicstar.c:1699:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1702:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_1 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1702:29: sparse: expected unsigned int [usertype] word_1 drivers/atm/nicstar.c:1702:29: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1793:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_1 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1793:36: sparse: expected unsigned int [usertype] word_1 drivers/atm/nicstar.c:1793:36: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1799:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1799:36: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1799:36: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1848:17: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1848:52: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1849:17: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1855:24: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1862:22: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1863:32: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1871:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1871:41: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1871:41: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1876:46: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1881:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_2 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1881:17: sparse: expected unsigned int [usertype] word_2 drivers/atm/nicstar.c:1881:17: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1950:14: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1960:18: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1954:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] word_4 @@ got restricted __le32 [usertype] @@ drivers/atm/nicstar.c:1954:17: sparse: expected unsigned int [usertype] word_4 drivers/atm/nicstar.c:1954:17: sparse: got restricted __le32 [usertype] drivers/atm/nicstar.c:1981:14: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1998:15: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:1999:15: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2023:26: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2041:47: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2042:30: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2043:39: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2101:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __user *iov_base @@ got void * @@ drivers/atm/nicstar.c:2101:23: sparse: expected void [noderef] __user *iov_base drivers/atm/nicstar.c:2101:23: sparse: got void * drivers/atm/nicstar.c:2102:24: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2135:13: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2141:21: sparse: sparse: cast to restricted __le32 drivers/atm/nicstar.c:2174:31: sparse: sparse: cast removes address space '__user' of expression drivers/atm/nicstar.c:2281:39: sparse: sparse: cast removes address space '__user' of expression drivers/atm/nicstar.c:2292:47: sparse: sparse: cast removes address space '__user' of expression drivers/atm/nicstar.c:2335:39: sparse: sparse: cast removes address space '__user' of expression drivers/atm/nicstar.c:2569:26: sparse: sparse: cast removes address space '__user' of expression >> drivers/atm/nicstar.c:2691:37: sparse: sparse: context imbalance in >> 'ns_poll' - different lock contexts for basic block vim +/ns_poll +2691 drivers/atm/nicstar.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 2682 e99e88a9d2b067 Kees Cook 2017-10-16 2683 static void ns_poll(struct timer_list *unused) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2684 { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2685 int i; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2686 ns_dev *card; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2687 unsigned long flags; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2688 u32 stat_r, stat_w; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2689 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2690 PRINTK("nicstar: Entering ns_poll().\n"); 098fde114bf665 chas williams - CONTRACTOR 2010-05-29 @2691 for (i = 0; i < num_cards; i++) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2692 card = cards[i]; 9a694c1de396e2 Lance Roy 2018-10-04 2693 if (!spin_trylock_irqsave(&card->int_lock, flags)) { ^1da177e4c3f41 Linus Torvalds 2005-04-16 2694 /* Probably it isn't worth spinning */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 2695 continue; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2696 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2697 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2698 stat_w = 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2699 stat_r = readl(card->membase + STAT); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2700 if (stat_r & NS_STAT_TSIF) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2701 stat_w |= NS_STAT_TSIF; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2702 if (stat_r & NS_STAT_EOPDU) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2703 stat_w |= NS_STAT_EOPDU; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2704 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2705 process_tsq(card); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2706 process_rsq(card); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2707 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2708 writel(stat_w, card->membase + STAT); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2709 spin_unlock_irqrestore(&card->int_lock, flags); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2710 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2711 mod_timer(&ns_timer, jiffies + NS_POLL_PERIOD); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2712 PRINTK("nicstar: Leaving ns_poll().\n"); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2713 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2714 :::::: The code at line 2691 was first introduced by commit :::::: 098fde114bf6655f4b75d71dbea208d039fc1de3 atm: [nicstar] reformatted with Lindent :::::: TO: chas williams - CONTRACTOR <[email protected]> :::::: CC: David S. Miller <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
