drivers/net/macsec.c:430:22: sparse: expected restricted ssci_t [usertype] ssci

From: kbuild test robot
Date: Tue Jun 09 2020 - 11:02:14 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f359287765c04711ff54fbd11645271d8e5ff763
commit: a21ecf0e033807b976967286e6c392f48ee2049f macsec: Support XPN frame handling - IEEE 802.1AEbw
date: 3 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 3 months ago
config: nios2-randconfig-s032-20200602 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-243-gc100a7ab-dirty
git checkout a21ecf0e033807b976967286e6c392f48ee2049f
# save the attached .config to linux build tree
make W=1 C=1 ARCH=nios2 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)

drivers/net/macsec.c:430:24: sparse: sparse: restricted ssci_t degrades to integer
drivers/net/macsec.c:430:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted ssci_t [usertype] ssci @@ got unsigned int @@
>> drivers/net/macsec.c:430:22: sparse: expected restricted ssci_t [usertype] ssci
>> drivers/net/macsec.c:430:22: sparse: got unsigned int
drivers/net/macsec.c:431:22: sparse: sparse: restricted __be64 degrades to integer
drivers/net/macsec.c:431:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] pn @@ got unsigned long long @@
>> drivers/net/macsec.c:431:20: sparse: expected restricted __be64 [usertype] pn
>> drivers/net/macsec.c:431:20: sparse: got unsigned long long
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: undefined identifier '__builtin_rdctl'
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: undefined identifier '__builtin_wrctl'
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:21:9: sparse: sparse: not a function <noident>
arch/nios2/include/asm/irqflags.h:12:16: sparse: sparse: not a function <noident>

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a21ecf0e033807b976967286e6c392f48ee2049f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout a21ecf0e033807b976967286e6c392f48ee2049f
vim +430 drivers/net/macsec.c

c09440f7dcb304 Sabrina Dubroca 2016-03-11 424
a21ecf0e033807 Era Mayflower 2020-03-09 425 static void macsec_fill_iv_xpn(unsigned char *iv, ssci_t ssci, u64 pn,
a21ecf0e033807 Era Mayflower 2020-03-09 426 salt_t salt)
a21ecf0e033807 Era Mayflower 2020-03-09 427 {
a21ecf0e033807 Era Mayflower 2020-03-09 428 struct gcm_iv_xpn *gcm_iv = (struct gcm_iv_xpn *)iv;
a21ecf0e033807 Era Mayflower 2020-03-09 429
a21ecf0e033807 Era Mayflower 2020-03-09 @430 gcm_iv->ssci = ssci ^ salt.ssci;
a21ecf0e033807 Era Mayflower 2020-03-09 @431 gcm_iv->pn = cpu_to_be64(pn) ^ salt.pn;
a21ecf0e033807 Era Mayflower 2020-03-09 432 }
a21ecf0e033807 Era Mayflower 2020-03-09 433

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

Attachment: .config.gz
Description: application/gzip