net/atm/pppoatm.c:373:24: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 3 weeks ago
config: openrisc-randconfig-s031-20200712 (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-37-gc9676a3b-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(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/atm/pppoatm.c:373:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/atm/pppoatm.c:373:24: sparse: expected int *__pu_addr
net/atm/pppoatm.c:373:24: sparse: got int [noderef] __user *
net/atm/pppoatm.c:376:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
net/atm/pppoatm.c:376:24: sparse: expected int const *__gu_addr
net/atm/pppoatm.c:376:24: sparse: got int [noderef] __user *
net/atm/pppoatm.c:453:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderef] [usertype] __user * @@
net/atm/pppoatm.c:453:21: sparse: expected unsigned short const *__gu_addr
net/atm/pppoatm.c:453:21: sparse: got unsigned short [noderef] [usertype] __user *
net/atm/pppoatm.c:464:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/atm/pppoatm.c:464:24: sparse: expected int *__pu_addr
net/atm/pppoatm.c:464:24: sparse: got int [noderef] __user *
net/atm/pppoatm.c:467:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/atm/pppoatm.c:467:24: sparse: expected int *__pu_addr
net/atm/pppoatm.c:467:24: sparse: got int [noderef] __user *
--
net/decnet/af_decnet.c:1537:12: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/decnet/af_decnet.c:1537:12: sparse: expected int const *__gu_addr
net/decnet/af_decnet.c:1537:12: sparse: got int [noderef] __user *optlen
>> net/decnet/af_decnet.c:1632:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *optlen @@
net/decnet/af_decnet.c:1632:21: sparse: expected int *__pu_addr
net/decnet/af_decnet.c:1632:21: sparse: got int [noderef] __user *optlen
net/decnet/af_decnet.c:249:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int hash @@ got restricted __le16 [usertype] sdn_objnamel @@
net/decnet/af_decnet.c:249:22: sparse: expected unsigned int hash
net/decnet/af_decnet.c:249:22: sparse: got restricted __le16 [usertype] sdn_objnamel
>> net/decnet/af_decnet.c:1241:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/decnet/af_decnet.c:1241:23: sparse: expected int *__pu_addr
>> net/decnet/af_decnet.c:1241:23: sparse: got int [noderef] __user *
net/decnet/af_decnet.c:1254:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/decnet/af_decnet.c:1254:23: sparse: expected int *__pu_addr
net/decnet/af_decnet.c:1254:23: sparse: got int [noderef] __user *
net/decnet/af_decnet.c:1516:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/decnet/af_decnet.c:1516:21: sparse: expected int const *__gu_addr
net/decnet/af_decnet.c:1516:21: sparse: got int [noderef] __user *optlen
net/decnet/af_decnet.c:1521:31: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *optlen @@
net/decnet/af_decnet.c:1521:31: sparse: expected int *__pu_addr
net/decnet/af_decnet.c:1521:31: sparse: got int [noderef] __user *optlen
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
include/net/dn.h:192:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] sport @@ got restricted __le16 [usertype] addrloc @@
include/net/dn.h:192:24: sparse: expected restricted __be16 [usertype] sport
include/net/dn.h:192:24: sparse: got restricted __le16 [usertype] addrloc
include/net/dn.h:193:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] dport @@ got restricted __le16 [usertype] addrrem @@
include/net/dn.h:193:24: sparse: expected restricted __be16 [usertype] dport
include/net/dn.h:193:24: sparse: got restricted __le16 [usertype] addrrem
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
net/decnet/af_decnet.c:2159:13: sparse: sparse: context imbalance in 'dn_socket_get_idx' - wrong count at exit
net/decnet/af_decnet.c:2187:9: sparse: sparse: context imbalance in 'dn_socket_seq_next' - unexpected unlock
net/decnet/af_decnet.c:2196:17: sparse: sparse: context imbalance in 'dn_socket_seq_stop' - unexpected unlock
--
>> net/dccp/ccid.c:69:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *optlen @@
net/dccp/ccid.c:69:13: sparse: expected int *__pu_addr
>> net/dccp/ccid.c:69:13: sparse: got int [noderef] __user *optlen
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
>> net/dccp/proto.c:390:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/dccp/proto.c:390:22: sparse: expected int *__pu_addr
net/dccp/proto.c:390:22: sparse: got int [noderef] __user *
net/dccp/proto.c:523:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
net/dccp/proto.c:523:13: sparse: expected int const *__gu_addr
net/dccp/proto.c:523:13: sparse: got int [noderef] __user *
net/dccp/proto.c:527:52: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 const [usertype] service @@ got int [assigned] val @@
net/dccp/proto.c:527:52: sparse: expected restricted __be32 const [usertype] service
net/dccp/proto.c:527:52: sparse: got int [assigned] val
>> net/dccp/proto.c:610:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *optlen @@
net/dccp/proto.c:610:13: sparse: expected int *__pu_addr
net/dccp/proto.c:610:13: sparse: got int [noderef] __user *optlen
>> net/dccp/proto.c:611:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected restricted __be32 *__pu_addr @@ got restricted __be32 [noderef] [usertype] __user *optval @@
net/dccp/proto.c:611:13: sparse: expected restricted __be32 *__pu_addr
>> net/dccp/proto.c:611:13: sparse: got restricted __be32 [noderef] [usertype] __user *optval
net/dccp/proto.c:625:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/dccp/proto.c:625:13: sparse: expected int const *__gu_addr
net/dccp/proto.c:625:13: sparse: got int [noderef] __user *optlen
net/dccp/proto.c:681:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *optlen @@
net/dccp/proto.c:681:13: sparse: expected int *__pu_addr
net/dccp/proto.c:681:13: sparse: got int [noderef] __user *optlen
net/dccp/proto.c:736:57: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 [usertype] param @@ got int cmsg_type @@
net/dccp/proto.c:736:57: sparse: expected restricted __be32 [usertype] param
net/dccp/proto.c:736:57: sparse: got int cmsg_type
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
--
drivers/watchdog/kempld_wdt.c:349:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/kempld_wdt.c:349:21: sparse: expected int const *__gu_addr
drivers/watchdog/kempld_wdt.c:349:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/kempld_wdt.c:357:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/watchdog/kempld_wdt.c:357:23: sparse: expected int *__pu_addr
>> drivers/watchdog/kempld_wdt.c:357:23: sparse: got int [noderef] __user *
--
net/tipc/socket.c:3129:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
net/tipc/socket.c:3129:21: sparse: expected unsigned int const *__gu_addr
net/tipc/socket.c:3129:21: sparse: got unsigned int [noderef] [usertype] __user *
>> net/tipc/socket.c:3212:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *ol @@
net/tipc/socket.c:3212:24: sparse: expected int *__pu_addr
net/tipc/socket.c:3212:24: sparse: got int [noderef] __user *ol
net/tipc/socket.c:3215:15: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *ol @@
net/tipc/socket.c:3215:15: sparse: expected int const *__gu_addr
net/tipc/socket.c:3215:15: sparse: got int [noderef] __user *ol
net/tipc/socket.c:3265:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *ol @@
net/tipc/socket.c:3265:16: sparse: expected int *__pu_addr
net/tipc/socket.c:3265:16: sparse: got int [noderef] __user *ol
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
drivers/isdn/mISDN/socket.c:319:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:319:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:319:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/socket.c:333:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:333:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:333:21: sparse: got int [noderef] __user *
>> drivers/isdn/mISDN/socket.c:367:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:367:21: sparse: expected int *__pu_addr
drivers/isdn/mISDN/socket.c:367:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/socket.c:371:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:371:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:371:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/socket.c:417:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:417:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:417:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/socket.c:441:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
drivers/isdn/mISDN/socket.c:441:13: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:441:13: sparse: got int [noderef] __user *optlen
>> drivers/isdn/mISDN/socket.c:454:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char *__pu_addr @@ got char [noderef] __user *optval @@
drivers/isdn/mISDN/socket.c:454:21: sparse: expected char *__pu_addr
>> drivers/isdn/mISDN/socket.c:454:21: sparse: got char [noderef] __user *optval
drivers/isdn/mISDN/socket.c:650:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:650:21: sparse: expected int *__pu_addr
drivers/isdn/mISDN/socket.c:650:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/socket.c:654:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/socket.c:654:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/socket.c:654:21: sparse: got int [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
>> drivers/isdn/mISDN/timerdev.c:124:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/timerdev.c:124:21: sparse: expected int *__pu_addr
drivers/isdn/mISDN/timerdev.c:124:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/timerdev.c:229:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/timerdev.c:229:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/timerdev.c:229:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/timerdev.c:241:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/timerdev.c:241:21: sparse: expected int *__pu_addr
drivers/isdn/mISDN/timerdev.c:241:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/timerdev.c:245:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/timerdev.c:245:21: sparse: expected int const *__gu_addr
drivers/isdn/mISDN/timerdev.c:245:21: sparse: got int [noderef] __user *
drivers/isdn/mISDN/timerdev.c:252:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/isdn/mISDN/timerdev.c:252:21: sparse: expected int *__pu_addr
drivers/isdn/mISDN/timerdev.c:252:21: sparse: got int [noderef] __user *
--
>> drivers/net/wireless/ray_cs.c:733:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[usertype] sram @@
drivers/net/wireless/ray_cs.c:733:22: sparse: expected void *addr
>> drivers/net/wireless/ray_cs.c:733:22: sparse: got void [noderef] __iomem *[usertype] sram
>> drivers/net/wireless/ray_cs.c:734:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[usertype] rmem @@
drivers/net/wireless/ray_cs.c:734:22: sparse: expected void *addr
>> drivers/net/wireless/ray_cs.c:734:22: sparse: got void [noderef] __iomem *[usertype] rmem
>> drivers/net/wireless/ray_cs.c:735:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[usertype] amem @@
drivers/net/wireless/ray_cs.c:735:22: sparse: expected void *addr
>> drivers/net/wireless/ray_cs.c:735:22: sparse: got void [noderef] __iomem *[usertype] amem
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
--
drivers/net/ethernet/via/via-velocity.h:237:24: sparse: sparse: mixed bitwiseness
drivers/net/ethernet/via/via-velocity.c:87:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void *addr @@ got struct mac_regs [noderef] __iomem *mac_regs @@
drivers/net/ethernet/via/via-velocity.c:87:26: sparse: expected void *addr
drivers/net/ethernet/via/via-velocity.c:87:26: sparse: got struct mac_regs [noderef] __iomem *mac_regs
drivers/net/ethernet/via/via-velocity.c:90:49: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted pci_power_t [usertype] state @@ got char state @@
drivers/net/ethernet/via/via-velocity.c:90:49: sparse: expected restricted pci_power_t [usertype] state
drivers/net/ethernet/via/via-velocity.c:90:49: sparse: got char state
drivers/net/ethernet/via/via-velocity.c:92:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void * @@
drivers/net/ethernet/via/via-velocity.c:92:36: sparse: expected void volatile [noderef] __iomem *addr
drivers/net/ethernet/via/via-velocity.c:92:36: sparse: got void *
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1727:34: sparse: sparse: cast from restricted __le16
drivers/net/ethernet/via/via-velocity.c:1730:17: sparse: sparse: cast to restricted __le16
drivers/net/ethernet/via/via-velocity.c:1730:17: sparse: sparse: cast to restricted __le16
drivers/net/ethernet/via/via-velocity.c:1730:17: sparse: sparse: cast to restricted __le16
drivers/net/ethernet/via/via-velocity.c:1730:17: sparse: sparse: cast to restricted __le16
drivers/net/ethernet/via/via-velocity.c:2222:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:2222:40: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:2222:40: sparse: got restricted pci_power_t [usertype]
drivers/net/ethernet/via/via-velocity.c:2230:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:2230:48: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:2230:48: sparse: got restricted pci_power_t [usertype]
drivers/net/ethernet/via/via-velocity.c:2417:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:2417:48: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:2417:48: sparse: got restricted pci_power_t [usertype]
drivers/net/ethernet/via/via-velocity.c:2430:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:2430:48: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:2430:48: sparse: got restricted pci_power_t [usertype]
drivers/net/ethernet/via/via-velocity.c:2868:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:2868:40: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:2868:40: sparse: got restricted pci_power_t [usertype]
>> drivers/net/ethernet/via/via-velocity.c:2875:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got struct mac_regs [noderef] __iomem *[assigned] regs @@
drivers/net/ethernet/via/via-velocity.c:2875:17: sparse: expected void *addr
>> drivers/net/ethernet/via/via-velocity.c:2875:17: sparse: got struct mac_regs [noderef] __iomem *[assigned] regs
>> drivers/net/ethernet/via/via-velocity.c:2896:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got struct mac_regs [noderef] __iomem *mac_regs @@
drivers/net/ethernet/via/via-velocity.c:2896:21: sparse: expected void *addr
drivers/net/ethernet/via/via-velocity.c:2896:21: sparse: got struct mac_regs [noderef] __iomem *mac_regs
drivers/net/ethernet/via/via-velocity.c:3270:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:3270:48: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:3270:48: sparse: got restricted pci_power_t [usertype]
drivers/net/ethernet/via/via-velocity.c:3287:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char state @@ got restricted pci_power_t [usertype] @@
drivers/net/ethernet/via/via-velocity.c:3287:48: sparse: expected char state
drivers/net/ethernet/via/via-velocity.c:3287:48: sparse: got restricted pci_power_t [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:215: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:215:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:215:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
--
drivers/net/ppp/pptp.c:281:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ack @@ got restricted __be32 @@
drivers/net/ppp/pptp.c:281:21: sparse: expected unsigned int [usertype] ack
drivers/net/ppp/pptp.c:281:21: sparse: got restricted __be32
drivers/net/ppp/pptp.c:283:23: sparse: sparse: cast to restricted __be32
drivers/net/ppp/pptp.c:358:26: sparse: sparse: cast from restricted __be16
drivers/net/ppp/pptp.c:358:26: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] call_id @@ got restricted __be16 [usertype] @@
drivers/net/ppp/pptp.c:358:26: sparse: expected unsigned short [usertype] call_id
drivers/net/ppp/pptp.c:358:26: sparse: got restricted __be16 [usertype]
>> drivers/net/ppp/pptp.c:582:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/pptp.c:582:21: sparse: expected int *__pu_addr
drivers/net/ppp/pptp.c:582:21: sparse: got int [noderef] __user *p
drivers/net/ppp/pptp.c:587:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/pptp.c:587:21: sparse: expected int const *__gu_addr
drivers/net/ppp/pptp.c:587:21: sparse: got int [noderef] __user *p
--
>> drivers/net/ethernet/xircom/xirc2ps_cs.c:935:50: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/net/ethernet/xircom/xirc2ps_cs.c:935:50: sparse: expected void *addr
>> drivers/net/ethernet/xircom/xirc2ps_cs.c:935:50: sparse: got void [noderef] __iomem *
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
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
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: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
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: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: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]
--
>> net/l2tp/l2tp_ip.c:593:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/l2tp/l2tp_ip.c:593:16: sparse: expected int *__pu_addr
>> net/l2tp/l2tp_ip.c:593:16: sparse: got int [noderef] __user *
arch/openrisc/include/asm/cmpxchg.h:101:29: sparse: sparse: shift too big (32) for type int
--
>> drivers/iio/adc/men_z188_adc.c:145:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *base @@
drivers/iio/adc/men_z188_adc.c:145:20: sparse: expected void *addr
>> drivers/iio/adc/men_z188_adc.c:145:20: sparse: got void [noderef] __iomem *base
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:166:15: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
--
>> drivers/android/binder.c:3609:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:3609:21: sparse: expected unsigned int const *__gu_addr
>> drivers/android/binder.c:3609:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:3629:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:3629:29: sparse: expected unsigned int const *__gu_addr
drivers/android/binder.c:3629:29: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/android/binder.c:3688:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long const *__gu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:3688:29: sparse: expected unsigned long long const *__gu_addr
>> drivers/android/binder.c:3688:29: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:3691:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long const *__gu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:3691:29: sparse: expected unsigned long long const *__gu_addr
drivers/android/binder.c:3691:29: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:3760:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long const *__gu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:3760:29: sparse: expected unsigned long long const *__gu_addr
drivers/android/binder.c:3760:29: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:3857:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:3857:29: sparse: expected unsigned int const *__gu_addr
drivers/android/binder.c:3857:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:3860:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long const *__gu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:3860:29: sparse: expected unsigned long long const *__gu_addr
drivers/android/binder.c:3860:29: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:3979:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long const *__gu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:3979:29: sparse: expected unsigned long long const *__gu_addr
drivers/android/binder.c:3979:29: sparse: got unsigned long long [noderef] [usertype] __user *
>> drivers/android/binder.c:4055:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4055:13: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4055:13: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/android/binder.c:4059:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long *__pu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:4059:13: sparse: expected unsigned long long *__pu_addr
drivers/android/binder.c:4059:13: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:4063:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long *__pu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:4063:13: sparse: expected unsigned long long *__pu_addr
drivers/android/binder.c:4063:13: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:4186:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4186:21: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4186:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4268:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4268:29: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4268:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4281:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4281:29: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4281:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4407:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4407:29: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4407:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4410:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long long *__pu_addr @@ got unsigned long long [noderef] [usertype] __user * @@
drivers/android/binder.c:4410:29: sparse: expected unsigned long long *__pu_addr
drivers/android/binder.c:4410:29: sparse: got unsigned long long [noderef] [usertype] __user *
drivers/android/binder.c:4482:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4482:37: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4482:37: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4502:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4502:21: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4502:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4567:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int *__pu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/android/binder.c:4567:21: sparse: expected unsigned int *__pu_addr
drivers/android/binder.c:4567:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/android/binder.c:4806:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __poll_t @@ got int @@
drivers/android/binder.c:4806:24: sparse: expected restricted __poll_t
drivers/android/binder.c:4806:24: sparse: got int
>> drivers/android/binder.c:5071:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected signed int *__pu_addr @@ got signed int [noderef] __user * @@
drivers/android/binder.c:5071:21: sparse: expected signed int *__pu_addr
>> drivers/android/binder.c:5071:21: sparse: got signed int [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
drivers/hwmon/w83793.c:1372:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/hwmon/w83793.c:1372:37: sparse: expected char const *__gu_addr
drivers/hwmon/w83793.c:1372:37: sparse: got char const [noderef] __user *
>> drivers/hwmon/w83793.c:1408:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1408:23: sparse: expected int *__pu_addr
drivers/hwmon/w83793.c:1408:23: sparse: got int [noderef] __user *
drivers/hwmon/w83793.c:1412:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1412:23: sparse: expected int *__pu_addr
drivers/hwmon/w83793.c:1412:23: sparse: got int [noderef] __user *
drivers/hwmon/w83793.c:1421:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1421:23: sparse: expected int *__pu_addr
drivers/hwmon/w83793.c:1421:23: sparse: got int [noderef] __user *
drivers/hwmon/w83793.c:1425:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1425:21: sparse: expected int const *__gu_addr
drivers/hwmon/w83793.c:1425:21: sparse: got int [noderef] __user *
drivers/hwmon/w83793.c:1431:31: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1431:31: sparse: expected int *__pu_addr
drivers/hwmon/w83793.c:1431:31: sparse: got int [noderef] __user *
drivers/hwmon/w83793.c:1435:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/hwmon/w83793.c:1435:21: sparse: expected int const *__gu_addr
drivers/hwmon/w83793.c:1435:21: sparse: got int [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
net/appletalk/ddp.c:100:33: sparse: sparse: restricted __be16 degrades to integer
net/appletalk/ddp.c:113:33: sparse: sparse: restricted __be16 degrades to integer
net/appletalk/ddp.c:409:47: sparse: sparse: restricted __be16 degrades to integer
>> net/appletalk/ddp.c:1801:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/appletalk/ddp.c:1801:22: sparse: expected int *__pu_addr
>> net/appletalk/ddp.c:1801:22: sparse: got int [noderef] __user *
net/appletalk/ddp.c:1814:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
net/appletalk/ddp.c:1814:22: sparse: expected int *__pu_addr
net/appletalk/ddp.c:1814:22: sparse: got int [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
>> drivers/video/fbdev/uvesafb.c:1757:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got char [noderef] __iomem *screen_base @@
drivers/video/fbdev/uvesafb.c:1757:21: sparse: expected void *addr
>> drivers/video/fbdev/uvesafb.c:1757:21: sparse: got char [noderef] __iomem *screen_base
drivers/video/fbdev/uvesafb.c:1784:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got char [noderef] __iomem *screen_base @@
drivers/video/fbdev/uvesafb.c:1784:29: sparse: expected void *addr
drivers/video/fbdev/uvesafb.c:1784:29: sparse: got char [noderef] __iomem *screen_base
--
>> net/ipv4/bpfilter/sockopt.c:63:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/ipv4/bpfilter/sockopt.c:63:13: sparse: expected int const *__gu_addr
>> net/ipv4/bpfilter/sockopt.c:63:13: sparse: got int [noderef] __user *optlen
--
>> drivers/char/pcmcia/synclink_cs.c:2058:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user *mask_ptr @@
drivers/char/pcmcia/synclink_cs.c:2058:17: sparse: expected int *__pu_addr
>> drivers/char/pcmcia/synclink_cs.c:2058:17: sparse: got int [noderef] __user *mask_ptr
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: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: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: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
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
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
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
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
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
--
>> fs/coda/psdev.c:79:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int *__pu_addr @@ got int [noderef] __user * @@
fs/coda/psdev.c:79:24: sparse: expected int *__pu_addr
>> fs/coda/psdev.c:79:24: sparse: got int [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
--
>> net/netfilter/x_tables.c:277:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short *__pu_addr @@ got unsigned short [noderef] [usertype] __user *psize @@
net/netfilter/x_tables.c:277:13: sparse: expected unsigned short *__pu_addr
>> net/netfilter/x_tables.c:277:13: sparse: got unsigned short [noderef] [usertype] __user *psize
>> net/netfilter/x_tables.c:281:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char *__pu_addr @@ got unsigned char [noderef] [usertype] __user *prev @@
net/netfilter/x_tables.c:281:13: sparse: expected unsigned char *__pu_addr
>> net/netfilter/x_tables.c:281:13: sparse: got unsigned char [noderef] [usertype] __user *prev
>> net/netfilter/x_tables.c:299:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __user * @@
net/netfilter/x_tables.c:299:28: sparse: expected void *addr
net/netfilter/x_tables.c:299:28: sparse: got void [noderef] __user *
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:131:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] __user *to @@
include/linux/uaccess.h:131:38: sparse: expected void *to
include/linux/uaccess.h:131:38: sparse: got void [noderef] __user *to
include/linux/uaccess.h:131:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *from @@
include/linux/uaccess.h:131:42: sparse: expected void const [noderef] __user *from
include/linux/uaccess.h:131:42: sparse: got void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
arch/openrisc/include/asm/uaccess.h:246:55: sparse: expected void const *from
arch/openrisc/include/asm/uaccess.h:246:55: sparse: got void const [noderef] __user *from
vim +373 net/atm/pppoatm.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 366
^1da177e4c3f41 Linus Torvalds 2005-04-16 367 /* This handles ioctls sent to the /dev/ppp interface */
^1da177e4c3f41 Linus Torvalds 2005-04-16 368 static int pppoatm_devppp_ioctl(struct ppp_channel *chan, unsigned int cmd,
^1da177e4c3f41 Linus Torvalds 2005-04-16 369 unsigned long arg)
^1da177e4c3f41 Linus Torvalds 2005-04-16 370 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 371 switch (cmd) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 372 case PPPIOCGFLAGS:
^1da177e4c3f41 Linus Torvalds 2005-04-16 @373 return put_user(chan_to_pvcc(chan)->flags, (int __user *) arg)
^1da177e4c3f41 Linus Torvalds 2005-04-16 374 ? -EFAULT : 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 375 case PPPIOCSFLAGS:
^1da177e4c3f41 Linus Torvalds 2005-04-16 376 return get_user(chan_to_pvcc(chan)->flags, (int __user *) arg)
^1da177e4c3f41 Linus Torvalds 2005-04-16 377 ? -EFAULT : 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 378 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 379 return -ENOTTY;
^1da177e4c3f41 Linus Torvalds 2005-04-16 380 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 381
:::::: The code at line 373 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[vhost:config-endian 38/39] drivers/platform/mellanox/mlxbf-tmfifo.c:1237:2: error: invalid preprocessing directive #defined; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git config-endian
head: d8ede9b5e734748613d3e3108a4026244aa8e41f
commit: 392755e77e260e8a173b228e8ecc17917f97d5eb [38/39] fixup! virtio_net: correct tags for config space fields
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git checkout 392755e77e260e8a173b228e8ecc17917f97d5eb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/platform/mellanox/mlxbf-tmfifo.c: In function 'mlxbf_tmfifo_probe':
>> drivers/platform/mellanox/mlxbf-tmfifo.c:1237:2: error: invalid preprocessing directive #defined; did you mean #define?
1237 | #defined MLXBF_TMFIFO_LITTLE_ENDIAN (virtio_legacy_is_little_endian() ||
| ^~~~~~~
| define
drivers/platform/mellanox/mlxbf-tmfifo.c:1238:4: warning: statement with no effect [-Wunused-value]
1238 | (MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1)))
| ^
>> drivers/platform/mellanox/mlxbf-tmfifo.c:1238:62: error: expected ';' before ')' token
1238 | (MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1)))
| ^
| ;
>> drivers/platform/mellanox/mlxbf-tmfifo.c:1238:62: error: expected statement before ')' token
>> drivers/platform/mellanox/mlxbf-tmfifo.c:1240:37: error: 'MLXBF_TMFIFO_LITTLE_ENDIAN' undeclared (first use in this function); did you mean 'MLXBF_TMFIFO_NET_L2_OVERHEAD'?
1240 | net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| MLXBF_TMFIFO_NET_L2_OVERHEAD
drivers/platform/mellanox/mlxbf-tmfifo.c:1240:37: note: each undeclared identifier is reported only once for each function it appears in
vim +1237 drivers/platform/mellanox/mlxbf-tmfifo.c
1181
1182 /* Probe the TMFIFO. */
1183 static int mlxbf_tmfifo_probe(struct platform_device *pdev)
1184 {
1185 struct virtio_net_config net_config;
1186 struct device *dev = &pdev->dev;
1187 struct mlxbf_tmfifo *fifo;
1188 int i, rc;
1189
1190 fifo = devm_kzalloc(dev, sizeof(*fifo), GFP_KERNEL);
1191 if (!fifo)
1192 return -ENOMEM;
1193
1194 spin_lock_init(&fifo->spin_lock[0]);
1195 spin_lock_init(&fifo->spin_lock[1]);
1196 INIT_WORK(&fifo->work, mlxbf_tmfifo_work_handler);
1197 mutex_init(&fifo->lock);
1198
1199 /* Get the resource of the Rx FIFO. */
1200 fifo->rx_base = devm_platform_ioremap_resource(pdev, 0);
1201 if (IS_ERR(fifo->rx_base))
1202 return PTR_ERR(fifo->rx_base);
1203
1204 /* Get the resource of the Tx FIFO. */
1205 fifo->tx_base = devm_platform_ioremap_resource(pdev, 1);
1206 if (IS_ERR(fifo->tx_base))
1207 return PTR_ERR(fifo->tx_base);
1208
1209 platform_set_drvdata(pdev, fifo);
1210
1211 timer_setup(&fifo->timer, mlxbf_tmfifo_timer, 0);
1212
1213 for (i = 0; i < MLXBF_TM_MAX_IRQ; i++) {
1214 fifo->irq_info[i].index = i;
1215 fifo->irq_info[i].fifo = fifo;
1216 fifo->irq_info[i].irq = platform_get_irq(pdev, i);
1217 rc = devm_request_irq(dev, fifo->irq_info[i].irq,
1218 mlxbf_tmfifo_irq_handler, 0,
1219 "tmfifo", &fifo->irq_info[i]);
1220 if (rc) {
1221 dev_err(dev, "devm_request_irq failed\n");
1222 fifo->irq_info[i].irq = 0;
1223 return rc;
1224 }
1225 }
1226
1227 mlxbf_tmfifo_set_threshold(fifo);
1228
1229 /* Create the console vdev. */
1230 rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_CONSOLE, 0, NULL, 0);
1231 if (rc)
1232 goto fail;
1233
1234 /* Create the network vdev. */
1235 memset(&net_config, 0, sizeof(net_config));
1236
> 1237 #defined MLXBF_TMFIFO_LITTLE_ENDIAN (virtio_legacy_is_little_endian() ||
> 1238 (MLXBF_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1)))
1239
> 1240 net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN,
1241 ETH_DATA_LEN);
1242 net_config.status = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN,
1243 VIRTIO_NET_S_LINK_UP);
1244 mlxbf_tmfifo_get_cfg_mac(net_config.mac);
1245 rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_NET,
1246 MLXBF_TMFIFO_NET_FEATURES, &net_config,
1247 sizeof(net_config));
1248 if (rc)
1249 goto fail;
1250
1251 mod_timer(&fifo->timer, jiffies + MLXBF_TMFIFO_TIMER_INTERVAL);
1252
1253 fifo->is_ready = true;
1254 return 0;
1255
1256 fail:
1257 mlxbf_tmfifo_cleanup(fifo);
1258 return rc;
1259 }
1260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-review:UPDATE-20200706-201823/Diego-Elio-Petten/usbmon-expose-the-usbmon-structures-and-constants-as-an-UAPI-header/20200705-230414 1/1] ./usr/include/linux/usb/mon.h:32:2: error: unknown type name '__u32'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200706-201823/Diego-Eli...
head: bb75cca6333888ad30c737d96109a3df6fdf54a6
commit: bb75cca6333888ad30c737d96109a3df6fdf54a6 [1/1] usbmon: expose the usbmon structures and constants as an UAPI header.
config: x86_64-randconfig-a012-20200712 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout bb75cca6333888ad30c737d96109a3df6fdf54a6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:32:
>> ./usr/include/linux/usb/mon.h:32:2: error: unknown type name '__u32'
32 | __u32 queued;
| ^~~~~
./usr/include/linux/usb/mon.h:33:2: error: unknown type name '__u32'
33 | __u32 dropped;
| ^~~~~
./usr/include/linux/usb/mon.h:39:2: error: unknown type name 'size_t'
39 | size_t alloc; /* Length of data (can be zero) */
| ^~~~~~
./usr/include/linux/usb/mon.h:43:2: error: unknown type name '__u32'
43 | __u32 *offvec; /* Vector of events fetched */
| ^~~~~
./usr/include/linux/usb/mon.h:44:2: error: unknown type name '__u32'
44 | __u32 nfetch; /* Number of events to fetch (out: fetched) */
| ^~~~~
./usr/include/linux/usb/mon.h:45:2: error: unknown type name '__u32'
45 | __u32 nflush; /* Number of events to flush */
| ^~~~~
./usr/include/linux/usb/mon.h:55:2: error: unknown type name '__u32'
55 | __u32 hdr32;
| ^~~~~
./usr/include/linux/usb/mon.h:56:2: error: unknown type name '__u32'
56 | __u32 data32;
| ^~~~~
./usr/include/linux/usb/mon.h:57:2: error: unknown type name '__u32'
57 | __u32 alloc32;
| ^~~~~
./usr/include/linux/usb/mon.h:61:2: error: unknown type name '__u32'
61 | __u32 offvec32;
| ^~~~~
./usr/include/linux/usb/mon.h:62:2: error: unknown type name '__u32'
62 | __u32 nfetch32;
| ^~~~~
./usr/include/linux/usb/mon.h:63:2: error: unknown type name '__u32'
63 | __u32 nflush32;
| ^~~~~
>> ./usr/include/linux/usb/mon.h:79:2: error: unknown type name '__u64'
79 | __u64 id; /* URB ID - from submission to callback */
| ^~~~~
>> ./usr/include/linux/usb/mon.h:80:2: error: unknown type name '__u8'
80 | __u8 type; /* Same as in text API; extensible. */
| ^~~~
./usr/include/linux/usb/mon.h:81:2: error: unknown type name '__u8'
81 | __u8 xfer_type; /* ISO, Intr, Control, Bulk */
| ^~~~
./usr/include/linux/usb/mon.h:82:2: error: unknown type name '__u8'
82 | __u8 epnum; /* Endpoint number and transfer direction */
| ^~~~
./usr/include/linux/usb/mon.h:83:2: error: unknown type name '__u8'
83 | __u8 devnum; /* Device address */
| ^~~~
>> ./usr/include/linux/usb/mon.h:84:2: error: unknown type name '__u16'
84 | __u16 busnum; /* Bus number */
| ^~~~~
>> ./usr/include/linux/usb/mon.h:85:2: error: unknown type name '__s8'
85 | __s8 flag_setup;
| ^~~~
./usr/include/linux/usb/mon.h:86:2: error: unknown type name '__s8'
86 | __s8 flag_data;
| ^~~~
>> ./usr/include/linux/usb/mon.h:87:2: error: unknown type name '__s64'
87 | __s64 ts_sec; /* ktime_get_real_ts64 */
| ^~~~~
>> ./usr/include/linux/usb/mon.h:88:2: error: unknown type name '__s32'
88 | __s32 ts_usec; /* ktime_get_real_ts64 */
| ^~~~~
./usr/include/linux/usb/mon.h:89:2: error: unknown type name '__s32'
89 | __s32 status;
| ^~~~~
./usr/include/linux/usb/mon.h:90:2: error: unknown type name '__u32'
90 | __u32 len_urb; /* Length of data (submitted or actual) */
| ^~~~~
./usr/include/linux/usb/mon.h:91:2: error: unknown type name '__u32'
91 | __u32 len_cap; /* Delivered length */
| ^~~~~
./usr/include/linux/usb/mon.h:93:3: error: unknown type name '__u8'
93 | __u8 setup[MON_USB_SETUP_LEN]; /* Only for Control S-type */
| ^~~~
./usr/include/linux/usb/mon.h:95:4: error: unknown type name '__s32'
95 | __s32 error_count;
| ^~~~~
./usr/include/linux/usb/mon.h:96:4: error: unknown type name '__s32'
96 | __s32 numdesc;
| ^~~~~
./usr/include/linux/usb/mon.h:99:2: error: unknown type name '__s32'
99 | __s32 interval;
| ^~~~~
./usr/include/linux/usb/mon.h:100:2: error: unknown type name '__s32'
100 | __s32 start_frame;
| ^~~~~
./usr/include/linux/usb/mon.h:101:2: error: unknown type name '__u32'
101 | __u32 xfer_flags;
| ^~~~~
./usr/include/linux/usb/mon.h:102:2: error: unknown type name '__u32'
102 | __u32 ndesc; /* Actual number of ISO descriptors */
| ^~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:1839:42: warning: unused variable 'mt7615_wowlan_support'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: c6bf20109a3fae92402cb76ad709ec5256bcd169 mt76: mt7615: add WoW support
date: 9 weeks ago
config: arm-randconfig-r001-20200713 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout c6bf20109a3fae92402cb76ad709ec5256bcd169
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:1839:42: warning: unused variable 'mt7615_wowlan_support' [-Wunused-const-variable]
static const struct wiphy_wowlan_support mt7615_wowlan_support = {
^
1 warning generated.
vim +/mt7615_wowlan_support +1839 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1838
> 1839 static const struct wiphy_wowlan_support mt7615_wowlan_support = {
1840 .flags = WIPHY_WOWLAN_MAGIC_PKT | WIPHY_WOWLAN_DISCONNECT,
1841 .n_patterns = 1,
1842 .pattern_min_len = 1,
1843 .pattern_max_len = MT7615_WOW_PATTEN_MAX_LEN,
1844 };
1845
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/pci/controller/dwc/pcie-spear13xx.c:76:54: sparse: sparse: incorrect type in initializer (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 3 weeks ago
config: x86_64-randconfig-s021-20200713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-37-gc9676a3b-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/pci/controller/dwc/pcie-spear13xx.c:76:54: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct pcie_app_reg *app_reg @@ got void [noderef] __iomem *app_base @@
drivers/pci/controller/dwc/pcie-spear13xx.c:76:54: sparse: expected struct pcie_app_reg *app_reg
>> drivers/pci/controller/dwc/pcie-spear13xx.c:76:54: sparse: got void [noderef] __iomem *app_base
>> drivers/pci/controller/dwc/pcie-spear13xx.c:127:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
>> drivers/pci/controller/dwc/pcie-spear13xx.c:127:26: sparse: expected void volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:127:26: sparse: got unsigned int *
drivers/pci/controller/dwc/pcie-spear13xx.c:135:54: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct pcie_app_reg *app_reg @@ got void [noderef] __iomem *app_base @@
drivers/pci/controller/dwc/pcie-spear13xx.c:135:54: sparse: expected struct pcie_app_reg *app_reg
drivers/pci/controller/dwc/pcie-spear13xx.c:135:54: sparse: got void [noderef] __iomem *app_base
>> drivers/pci/controller/dwc/pcie-spear13xx.c:140:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
>> drivers/pci/controller/dwc/pcie-spear13xx.c:140:25: sparse: expected void const volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:140:25: sparse: got unsigned int *
drivers/pci/controller/dwc/pcie-spear13xx.c:147:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/controller/dwc/pcie-spear13xx.c:147:25: sparse: expected void volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:147:25: sparse: got unsigned int *
drivers/pci/controller/dwc/pcie-spear13xx.c:156:54: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct pcie_app_reg *app_reg @@ got void [noderef] __iomem *app_base @@
drivers/pci/controller/dwc/pcie-spear13xx.c:156:54: sparse: expected struct pcie_app_reg *app_reg
drivers/pci/controller/dwc/pcie-spear13xx.c:156:54: sparse: got void [noderef] __iomem *app_base
drivers/pci/controller/dwc/pcie-spear13xx.c:161:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/controller/dwc/pcie-spear13xx.c:161:31: sparse: expected void const volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:161:31: sparse: got unsigned int *
drivers/pci/controller/dwc/pcie-spear13xx.c:162:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/controller/dwc/pcie-spear13xx.c:162:48: sparse: expected void volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:162:48: sparse: got unsigned int *
drivers/pci/controller/dwc/pcie-spear13xx.c:169:54: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct pcie_app_reg *app_reg @@ got void [noderef] __iomem *app_base @@
drivers/pci/controller/dwc/pcie-spear13xx.c:169:54: sparse: expected struct pcie_app_reg *app_reg
drivers/pci/controller/dwc/pcie-spear13xx.c:169:54: sparse: got void [noderef] __iomem *app_base
drivers/pci/controller/dwc/pcie-spear13xx.c:171:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/controller/dwc/pcie-spear13xx.c:171:20: sparse: expected void const volatile [noderef] __iomem *addr
drivers/pci/controller/dwc/pcie-spear13xx.c:171:20: sparse: got unsigned int *
vim +76 drivers/pci/controller/dwc/pcie-spear13xx.c
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 71
ffe82fa66afb19 drivers/pci/host/pcie-spear13xx.c Bjorn Helgaas 2016-10-06 72 static int spear13xx_pcie_establish_link(struct spear13xx_pcie *spear13xx_pcie)
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 73 {
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 74 struct dw_pcie *pci = spear13xx_pcie->pci;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 75 struct pcie_port *pp = &pci->pp;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 @76 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
ffe82fa66afb19 drivers/pci/host/pcie-spear13xx.c Bjorn Helgaas 2016-10-06 77 u32 val;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 78 u32 exp_cap_off = EXP_CAP_ID_OFFSET;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 79
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 80 if (dw_pcie_link_up(pci)) {
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 81 dev_err(pci->dev, "link already up\n");
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 82 return 0;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 83 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 84
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 85 dw_pcie_setup_rc(pp);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 86
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 87 /*
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 88 * this controller support only 128 bytes read size, however its
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 89 * default value in capability register is 512 bytes. So force
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 90 * it to 128 here.
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 91 */
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 92 dw_pcie_read(pci->dbi_base + exp_cap_off + PCI_EXP_DEVCTL, 2, &val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 93 val &= ~PCI_EXP_DEVCTL_READRQ;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 94 dw_pcie_write(pci->dbi_base + exp_cap_off + PCI_EXP_DEVCTL, 2, val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 95
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 96 dw_pcie_write(pci->dbi_base + PCI_VENDOR_ID, 2, 0x104A);
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 97 dw_pcie_write(pci->dbi_base + PCI_DEVICE_ID, 2, 0xCD80);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 98
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 99 /*
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 100 * if is_gen1 is set then handle it, so that some buggy card
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 101 * also works
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 102 */
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 103 if (spear13xx_pcie->is_gen1) {
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 104 dw_pcie_read(pci->dbi_base + exp_cap_off + PCI_EXP_LNKCAP,
4c45852f494dab drivers/pci/host/pcie-spear13xx.c Gabriele Paoloni 2015-10-08 105 4, &val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 106 if ((val & PCI_EXP_LNKCAP_SLS) != PCI_EXP_LNKCAP_SLS_2_5GB) {
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 107 val &= ~((u32)PCI_EXP_LNKCAP_SLS);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 108 val |= PCI_EXP_LNKCAP_SLS_2_5GB;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 109 dw_pcie_write(pci->dbi_base + exp_cap_off +
4c45852f494dab drivers/pci/host/pcie-spear13xx.c Gabriele Paoloni 2015-10-08 110 PCI_EXP_LNKCAP, 4, val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 111 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 112
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 113 dw_pcie_read(pci->dbi_base + exp_cap_off + PCI_EXP_LNKCTL2,
4c45852f494dab drivers/pci/host/pcie-spear13xx.c Gabriele Paoloni 2015-10-08 114 2, &val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 115 if ((val & PCI_EXP_LNKCAP_SLS) != PCI_EXP_LNKCAP_SLS_2_5GB) {
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 116 val &= ~((u32)PCI_EXP_LNKCAP_SLS);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 117 val |= PCI_EXP_LNKCAP_SLS_2_5GB;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 118 dw_pcie_write(pci->dbi_base + exp_cap_off +
4c45852f494dab drivers/pci/host/pcie-spear13xx.c Gabriele Paoloni 2015-10-08 119 PCI_EXP_LNKCTL2, 2, val);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 120 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 121 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 122
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 123 /* enable ltssm */
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 124 writel(DEVICE_TYPE_RC | (1 << MISCTRL_EN_ID)
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 125 | (1 << APP_LTSSM_ENABLE_ID)
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 126 | ((u32)1 << REG_TRANSLATION_ENABLE),
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 @127 &app_reg->app_ctrl_0);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 128
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 129 return dw_pcie_wait_for_link(pci);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 130 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 131
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 132 static irqreturn_t spear13xx_pcie_irq_handler(int irq, void *arg)
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 133 {
ffe82fa66afb19 drivers/pci/host/pcie-spear13xx.c Bjorn Helgaas 2016-10-06 134 struct spear13xx_pcie *spear13xx_pcie = arg;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 135 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 136 struct dw_pcie *pci = spear13xx_pcie->pci;
442ec4c04d1235 drivers/pci/dwc/pcie-spear13xx.c Kishon Vijay Abraham I 2017-02-15 137 struct pcie_port *pp = &pci->pp;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 138 unsigned int status;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 139
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 @140 status = readl(&app_reg->int_sts);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 141
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 142 if (status & MSI_CTRL_INT) {
68ebb7ce395c6d drivers/pci/host/pcie-spear13xx.c Fabio Estevam 2015-08-20 143 BUG_ON(!IS_ENABLED(CONFIG_PCI_MSI));
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 144 dw_handle_msi_irq(pp);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 145 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 146
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 147 writel(status, &app_reg->int_clr);
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 148
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 149 return IRQ_HANDLED;
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 150 }
51b66a6ce12570 drivers/pci/host/pcie-spear13xx.c Pratyush Anand 2014-02-11 151
:::::: The code at line 76 was first introduced by commit
:::::: 51b66a6ce12570e5ee1a249c811f7f2d74814a43 PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx
:::::: TO: Pratyush Anand <pratyush.anand(a)st.com>
:::::: CC: Viresh Kumar <viresh.kumar(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/pci/switch/switchtec.c:1075:33: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 3 weeks ago
config: alpha-randconfig-s032-20200712 (attached as .config)
compiler: alpha-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-37-gc9676a3b-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=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/pci/switch/switchtec.c:943:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected unsigned int [noderef] [usertype] __iomem * @@ got void * @@
drivers/pci/switch/switchtec.c:943:31: sparse: expected unsigned int [noderef] [usertype] __iomem *
drivers/pci/switch/switchtec.c:943:31: sparse: got void *
drivers/pci/switch/switchtec.c:951:39: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected unsigned int [noderef] [usertype] __iomem * @@ got void * @@
drivers/pci/switch/switchtec.c:951:39: sparse: expected unsigned int [noderef] [usertype] __iomem *
drivers/pci/switch/switchtec.c:951:39: sparse: got void *
drivers/pci/switch/switchtec.c:954:39: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected unsigned int [noderef] [usertype] __iomem * @@ got void * @@
drivers/pci/switch/switchtec.c:954:39: sparse: expected unsigned int [noderef] [usertype] __iomem *
drivers/pci/switch/switchtec.c:954:39: sparse: got void *
drivers/pci/switch/switchtec.c:1067:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct switchtec_ioctl_pff_port *up @@
drivers/pci/switch/switchtec.c:1067:32: sparse: expected void const [noderef] __user *from
drivers/pci/switch/switchtec.c:1067:32: sparse: got struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1072:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct part_cfg_regs *pcfg @@ got struct part_cfg_regs [noderef] __iomem * @@
drivers/pci/switch/switchtec.c:1072:22: sparse: expected struct part_cfg_regs *pcfg
drivers/pci/switch/switchtec.c:1072:22: sparse: got struct part_cfg_regs [noderef] __iomem *
>> drivers/pci/switch/switchtec.c:1075:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
>> drivers/pci/switch/switchtec.c:1075:33: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1075:33: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1081:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1081:33: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1081:33: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1088:62: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1088:62: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1088:62: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1100:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got struct switchtec_ioctl_pff_port *up @@
drivers/pci/switch/switchtec.c:1100:26: sparse: expected void [noderef] __user *to
drivers/pci/switch/switchtec.c:1100:26: sparse: got struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1112:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct switchtec_ioctl_pff_port *up @@
drivers/pci/switch/switchtec.c:1112:32: sparse: expected void const [noderef] __user *from
drivers/pci/switch/switchtec.c:1112:32: sparse: got struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1116:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct part_cfg_regs *pcfg @@ got struct part_cfg_regs [noderef] __iomem *mmio_part_cfg @@
drivers/pci/switch/switchtec.c:1116:22: sparse: expected struct part_cfg_regs *pcfg
drivers/pci/switch/switchtec.c:1116:22: sparse: got struct part_cfg_regs [noderef] __iomem *mmio_part_cfg
drivers/pci/switch/switchtec.c:1118:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct part_cfg_regs *pcfg @@ got struct part_cfg_regs [noderef] __iomem * @@
drivers/pci/switch/switchtec.c:1118:22: sparse: expected struct part_cfg_regs *pcfg
drivers/pci/switch/switchtec.c:1118:22: sparse: got struct part_cfg_regs [noderef] __iomem *
drivers/pci/switch/switchtec.c:1124:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1124:35: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1124:35: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1127:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1127:35: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1127:35: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1134:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1134:56: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1134:56: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1138:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got struct switchtec_ioctl_pff_port *up @@
drivers/pci/switch/switchtec.c:1138:26: sparse: expected void [noderef] __user *to
drivers/pci/switch/switchtec.c:1138:26: sparse: got struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1171:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct switchtec_ioctl_pff_port *up @@ got void [noderef] __user *argp @@
drivers/pci/switch/switchtec.c:1171:47: sparse: expected struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1171:47: sparse: got void [noderef] __user *argp
drivers/pci/switch/switchtec.c:1174:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct switchtec_ioctl_pff_port *up @@ got void [noderef] __user *argp @@
drivers/pci/switch/switchtec.c:1174:47: sparse: expected struct switchtec_ioctl_pff_port *up
drivers/pci/switch/switchtec.c:1174:47: sparse: got void [noderef] __user *argp
drivers/pci/switch/switchtec.c:1487:43: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct part_cfg_regs *pcfg @@ got struct part_cfg_regs [noderef] __iomem *mmio_part_cfg @@
drivers/pci/switch/switchtec.c:1487:43: sparse: expected struct part_cfg_regs *pcfg
drivers/pci/switch/switchtec.c:1487:43: sparse: got struct part_cfg_regs [noderef] __iomem *mmio_part_cfg
drivers/pci/switch/switchtec.c:1497:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1497:25: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1497:25: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1501:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1501:25: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1501:25: sparse: got unsigned int *
drivers/pci/switch/switchtec.c:1506:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int * @@
drivers/pci/switch/switchtec.c:1506:54: sparse: expected void [noderef] __iomem *addr
drivers/pci/switch/switchtec.c:1506:54: sparse: got unsigned int *
--
drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse: expected void *[assigned] addr
drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse: got void [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[assigned] addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse: expected void *[assigned] addr
drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse: got void [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *virtual @@
drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse: got void *virtual
>> drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
>> drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse: got unsigned int [usertype] *
drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse: got unsigned int [usertype] *
drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got void *[assigned] src @@
drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse: expected void const volatile [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse: got void *[assigned] src
drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem * @@ got void *[assigned] dst @@
drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse: expected void volatile [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse: got void *[assigned] dst
drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *[addressable] new_iomap @@
drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse: got void *[addressable] new_iomap
drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *virtual @@ got void [noderef] __iomem * @@
drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse: expected void *virtual
drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse: got void [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *virtual @@ got void [noderef] __iomem * @@
drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse: expected void *virtual
drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse: got void [noderef] __iomem *
drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *virtual @@
drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse: got void *virtual
vim +1075 drivers/pci/switch/switchtec.c
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1058
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1059 static int ioctl_pff_to_port(struct switchtec_dev *stdev,
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1060 struct switchtec_ioctl_pff_port *up)
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1061 {
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1062 int i, part;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1063 u32 reg;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1064 struct part_cfg_regs *pcfg;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1065 struct switchtec_ioctl_pff_port p;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1066
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1067 if (copy_from_user(&p, up, sizeof(p)))
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1068 return -EFAULT;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1069
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1070 p.port = -1;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1071 for (part = 0; part < stdev->partition_count; part++) {
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1072 pcfg = &stdev->mmio_part_cfg_all[part];
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1073 p.partition = part;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1074
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 @1075 reg = ioread32(&pcfg->usp_pff_inst_id);
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1076 if (reg == p.pff) {
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1077 p.port = 0;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1078 break;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1079 }
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1080
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1081 reg = ioread32(&pcfg->vep_pff_inst_id);
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1082 if (reg == p.pff) {
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1083 p.port = SWITCHTEC_IOCTL_PFF_VEP;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1084 break;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1085 }
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1086
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1087 for (i = 0; i < ARRAY_SIZE(pcfg->dsp_pff_inst_id); i++) {
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1088 reg = ioread32(&pcfg->dsp_pff_inst_id[i]);
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1089 if (reg != p.pff)
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1090 continue;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1091
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1092 p.port = i + 1;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1093 break;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1094 }
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1095
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1096 if (p.port != -1)
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1097 break;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1098 }
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1099
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1100 if (copy_to_user(up, &p, sizeof(p)))
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1101 return -EFAULT;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1102
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1103 return 0;
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1104 }
52eabba5bcdb28 Logan Gunthorpe 2017-03-02 1105
:::::: The code at line 1075 was first introduced by commit
:::::: 52eabba5bcdb2853dec6ef007ba427b092034738 switchtec: Add IOCTLs to the Switchtec driver
:::::: TO: Logan Gunthorpe <logang(a)deltatee.com>
:::::: CC: Bjorn Helgaas <bhelgaas(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[riscv:for-next 10/13] arch/riscv/kernel/entry.S:106: Error: illegal operands `andi a0,s1,0x00001800'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next
head: 929f6a183839a4c4aabb38a61e02fe32239e6b59
commit: 95ce6c73da3b909d27181df5ab47bb0d901e5698 [10/13] riscv: Enable context tracking
config: riscv-randconfig-r015-20200712 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
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
git checkout 95ce6c73da3b909d27181df5ab47bb0d901e5698
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/riscv/kernel/entry.S: Assembler messages:
>> arch/riscv/kernel/entry.S:106: Error: illegal operands `andi a0,s1,0x00001800'
vim +106 arch/riscv/kernel/entry.S
103
104 #ifdef CONFIG_CONTEXT_TRACKING
105 /* If previous state is in user mode, call context_tracking_user_exit. */
> 106 andi a0, s1, SR_PP
107 bnez a0, skip_context_tracking
108 call context_tracking_user_exit
109 skip_context_tracking:
110 #endif
111
112 /*
113 * MSB of cause differentiates between
114 * interrupts and exceptions
115 */
116 bge s4, zero, 1f
117
118 la ra, ret_from_exception
119
120 /* Handle interrupts */
121 move a0, sp /* pt_regs */
122 la a1, handle_arch_irq
123 REG_L a1, (a1)
124 jr a1
125 1:
126 #ifdef CONFIG_TRACE_IRQFLAGS
127 call trace_hardirqs_on
128 #endif
129 /*
130 * Exceptions run with interrupts enabled or disabled depending on the
131 * state of SR_PIE in m/sstatus.
132 */
133 andi t0, s1, SR_PIE
134 beqz t0, 1f
135 csrs CSR_STATUS, SR_IE
136
137 1:
138 la ra, ret_from_exception
139 /* Handle syscalls */
140 li t0, EXC_SYSCALL
141 beq s4, t0, handle_syscall
142
143 /* Handle other exceptions */
144 slli t0, s4, RISCV_LGPTR
145 la t1, excp_vect_table
146 la t2, excp_vect_table_end
147 move a0, sp /* pt_regs */
148 add t0, t1, t0
149 /* Check if exception code lies within bounds */
150 bgeu t0, t2, 1f
151 REG_L t0, 0(t0)
152 jr t0
153 1:
154 tail do_trap_unknown
155
156 handle_syscall:
157 #if defined(CONFIG_TRACE_IRQFLAGS) || defined(CONFIG_CONTEXT_TRACKING)
158 /* Recover a0 - a7 for system calls */
159 REG_L a0, PT_A0(sp)
160 REG_L a1, PT_A1(sp)
161 REG_L a2, PT_A2(sp)
162 REG_L a3, PT_A3(sp)
163 REG_L a4, PT_A4(sp)
164 REG_L a5, PT_A5(sp)
165 REG_L a6, PT_A6(sp)
166 REG_L a7, PT_A7(sp)
167 #endif
168 /* save the initial A0 value (needed in signal handlers) */
169 REG_S a0, PT_ORIG_A0(sp)
170 /*
171 * Advance SEPC to avoid executing the original
172 * scall instruction on sret
173 */
174 addi s2, s2, 0x4
175 REG_S s2, PT_EPC(sp)
176 /* Trace syscalls, but only if requested by the user. */
177 REG_L t0, TASK_TI_FLAGS(tp)
178 andi t0, t0, _TIF_SYSCALL_WORK
179 bnez t0, handle_syscall_trace_enter
180 check_syscall_nr:
181 /* Check to make sure we don't jump to a bogus syscall number. */
182 li t0, __NR_syscalls
183 la s0, sys_ni_syscall
184 /*
185 * Syscall number held in a7.
186 * If syscall number is above allowed value, redirect to ni_syscall.
187 */
188 bge a7, t0, 1f
189 /*
190 * Check if syscall is rejected by tracer, i.e., a7 == -1.
191 * If yes, we pretend it was executed.
192 */
193 li t1, -1
194 beq a7, t1, ret_from_syscall_rejected
195 blt a7, t1, 1f
196 /* Call syscall */
197 la s0, sys_call_table
198 slli t0, a7, RISCV_LGPTR
199 add s0, s0, t0
200 REG_L s0, 0(s0)
201 1:
202 jalr s0
203
204 ret_from_syscall:
205 /* Set user a0 to kernel a0 */
206 REG_S a0, PT_A0(sp)
207 /*
208 * We didn't execute the actual syscall.
209 * Seccomp already set return value for the current task pt_regs.
210 * (If it was configured with SECCOMP_RET_ERRNO/TRACE)
211 */
212 ret_from_syscall_rejected:
213 /* Trace syscalls, but only if requested by the user. */
214 REG_L t0, TASK_TI_FLAGS(tp)
215 andi t0, t0, _TIF_SYSCALL_WORK
216 bnez t0, handle_syscall_trace_exit
217
218 ret_from_exception:
219 REG_L s0, PT_STATUS(sp)
220 csrc CSR_STATUS, SR_IE
221 #ifdef CONFIG_TRACE_IRQFLAGS
222 call trace_hardirqs_off
223 #endif
224 #ifdef CONFIG_RISCV_M_MODE
225 /* the MPP value is too large to be used as an immediate arg for addi */
226 li t0, SR_MPP
227 and s0, s0, t0
228 #else
229 andi s0, s0, SR_SPP
230 #endif
231 bnez s0, resume_kernel
232
233 resume_userspace:
234 /* Interrupts must be disabled here so flags are checked atomically */
235 REG_L s0, TASK_TI_FLAGS(tp) /* current_thread_info->flags */
236 andi s1, s0, _TIF_WORK_MASK
237 bnez s1, work_pending
238
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[kees:linker/orphans/warn/v4 17/18] ld.lld: warning: arch/x86/built-in.a(kernel/unwind_orc.o):(".discard.ksym") is being placed in '".discard.ksym"'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git linker/orphans/warn/v4
head: 1ef6598bf18704bc9312c21a5a4c7d47b9c5d9e0
commit: 91d0ae9c59e722819bcf47728b659798992755c4 [17/18] x86/build: Warn on orphan section placement
config: x86_64-randconfig-a004-20200712 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 91d0ae9c59e722819bcf47728b659798992755c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
ld.lld: warning: init/built-in.a(main.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: init/built-in.a(version.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: init/built-in.a(do_mounts.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: init/built-in.a(init_task.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/probe.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/amd/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/amd/ibs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/intel/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(events/intel/pt.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(hyperv/hv_init.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(hyperv/nested.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/process_64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/irq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/time.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/nmi.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/setup.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/x86_init.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/i8259.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/probe_roms.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/e820.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/pci-dma.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/quirks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/kdebugfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/alternative.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/hw_breakpoint.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/tsc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/io_delay.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/rtc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/process.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/fpu/init.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/fpu/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/fpu/xstate.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/match.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/bugs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/umwait.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/intel.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/amd.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/mtrr/mtrr.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/mtrr/generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/perfctr-watchdog.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/vmware.o):(.data..decrypted) is being placed in '.data..decrypted'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/hypervisor.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/cpu/mshyperv.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/acpi/boot.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/acpi/cstate.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/reboot.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/early-quirks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/apic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/apic_common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/vector.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/io_apic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/msi.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/apic/apic_flat_64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/crash.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/hpet.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/amd_nb.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/kvm.o):(.data..decrypted) is being placed in '.data..decrypted'
ld.lld: warning: arch/x86/built-in.a(kernel/kvm.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/kvmclock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/paravirt.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(kernel/pvclock.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: arch/x86/built-in.a(kernel/unwind_orc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/init.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/init_64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/ioremap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/extable.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/pgtable.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/physaddr.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/tlb.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/cpu_entry_area.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/pat/set_memory.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/pat/memtype.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/dump_pagetables.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(mm/mem_encrypt.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(crypto/glue_helper.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(crypto/twofish_glue.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(crypto/twofish_glue_3way.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: arch/x86/built-in.a(crypto/serpent_avx_glue.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: arch/x86/built-in.a(crypto/blake2s-glue.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(platform/efi/quirks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: arch/x86/built-in.a(platform/efi/efi_64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(fork.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(panic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cpu.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(exit.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(softirq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(resource.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sysctl.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(capability.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(ptrace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(user.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(signal.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sys.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(umh.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(workqueue.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(pid.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(params.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(kthread.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(notifier.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(ksysfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cred.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(reboot.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(async.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(smpboot.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(kmod.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(groups.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/loadavg.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/clock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/cputime.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/idle.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/fair.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/wait.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/wait_bit.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/swait.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/completion.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(sched/cpufreq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/mutex.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/semaphore.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/rwsem.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/percpu-rwsem.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/mutex-debug.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/lockdep.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/rtmutex.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/spinlock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(locking/spinlock_debug.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(power/qos.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(power/main.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(printk/printk.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/irqdesc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/handle.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/manage.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/chip.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/dummychip.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/devres.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/autoprobe.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/irqdomain.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/irq_sim.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq/msi.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(rcu/update.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(rcu/srcutree.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(rcu/tree.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(dma/mapping.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(dma/direct.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(dma/dummy.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(dma/swiotlb.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(stacktrace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/time.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/timer.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/hrtimer.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/timekeeping.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/clocksource.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/jiffies.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/timeconv.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/timecounter.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/alarmtimer.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/posix-clock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/clockevents.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/tick-common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(time/tick-broadcast.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(dma.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(up.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(module.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(kallsyms.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(crash_core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(kexec_core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cgroup/cgroup.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cgroup/rstat.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cgroup/namespace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(cgroup/cgroup-v1.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(pid_namespace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(kcov.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(watchdog.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(watchdog_hld.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(relay.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(tracepoint.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_clock.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(trace/ftrace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/ring_buffer.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_output.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_seq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_printk.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_preemptirq.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(trace/trace_irqsoff.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(trace/trace_branch.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_events.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_event_perf.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_events_filter.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/trace_events_trigger.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/power-traces.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(trace/rpm-traces.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(irq_work.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/syscall.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/verifier.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/tnum.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(bpf/offload.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(events/core.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(events/ring_buffer.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(events/hw_breakpoint.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: kernel/built-in.a(jump_label.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: kernel/built-in.a(iomem.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: certs/built-in.a(system_keyring.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(filemap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(mempool.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(oom_kill.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(fadvise.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(maccess.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(page-writeback.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(readahead.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(swap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(truncate.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(vmscan.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(shmem.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(util.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(vmstat.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(backing-dev.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(mm_init.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(percpu.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(slab_common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(compaction.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(list_lru.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(debug.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(gup.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(memory.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(mlock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(mmap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(rmap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(vmalloc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(page_alloc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(memblock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(dmapool.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(sparse.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(mmu_notifier.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(ksm.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(slub.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(kasan/common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(kasan/report.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(kasan/generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(kasan/generic_report.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(memory_hotplug.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(migrate.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(huge_memory.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(cleancache.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(zpool.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(debug_page_ref.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(usercopy.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: mm/built-in.a(hmm.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: mm/built-in.a(page_reporting.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(open.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(read_write.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(file_table.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(super.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(char_dev.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(stat.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(exec.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(pipe.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(namei.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fcntl.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(ioctl.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(readdir.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(select.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(dcache.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(attr.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(bad_inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(filesystems.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(namespace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(seq_file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(xattr.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(libfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fs-writeback.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(splice.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(sync.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(d_path.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(stack.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fs_struct.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(statfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nsfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fs_types.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fs_context.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fs_parser.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(notify/fsnotify.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(notify/notification.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(notify/group.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(notify/mark.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(anon_inodes.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/crypto.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/fname.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/hooks.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/keyring.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/keysetup.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(crypto/policy.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(locks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(posix_acl.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs_common/grace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(proc/generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(proc/proc_sysctl.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(proc/proc_net.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(kernfs/dir.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(kernfs/file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(sysfs/file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(sysfs/dir.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(sysfs/symlink.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(sysfs/group.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(configfs/dir.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(configfs/item.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/cache.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/cookie.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/fsdef.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/netfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/object.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/operation.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(fscache/page.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/client.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/dir.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/super.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/direct.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/pagelist.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/read.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/write.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/namespace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/nfstrace.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/fs_context.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nfs/nfs3client.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(exportfs/expfs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(lockd/clntlock.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(lockd/clntproc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(lockd/svc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(lockd/svcsubs.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(nls/nls_base.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(fuse/dev.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(fuse/file.o):(".discard.ksym") is being placed in '".discard.ksym"'
>> ld.lld: warning: fs/built-in.a(fuse/inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(debugfs/inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: fs/built-in.a(debugfs/file.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/key.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/keyring.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/permission.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/process_keys.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/request_key.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/user_defined.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/encrypted-keys/encrypted.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(keys/encrypted-keys/ecryptfs_format.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(security.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: security/built-in.a(inode.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(api.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(cipher.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(compress.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(memneq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(algapi.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(scatterwalk.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(aead.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(geniv.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(skcipher.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(ahash.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(shash.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(akcipher.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(kpp.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(dh_helper.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(rsa_helper.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(acompress.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(scompress.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(testmgr.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(crypto_null.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(sha1_generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(sha256_generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(sha3_generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(nhpoly1305.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(cryptd.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(blowfish_common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(twofish_common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(serpent_generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(aes_generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(crct10dif_common.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(authenc.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(rng.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/asymmetric_type.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/signature.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/public_key.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/x509_cert_parser.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/pkcs7_parser.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/pkcs7_trust.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(asymmetric_keys/pkcs7_verify.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(hash_info.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: crypto/built-in.a(simd.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(lockref.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(bcd.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(sort.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(parser.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(debug_locks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(random32.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kasprintf.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(bitmap.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(scatterlist.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(list_sort.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(uuid.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(iov_iter.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(clz_ctz.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(bsearch.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(find_bit.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(llist.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(memweight.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kfifo.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(percpu-refcount.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(rhashtable.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(once.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(refcount.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(usercopy.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(errseq.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(bucket_locks.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(generic-radix-tree.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(string_helpers.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(hexdump.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kstrtox.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kunit/test.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kunit/assert.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(kunit/try-catch.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/div64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/gcd.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/lcm.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/int_pow.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/int_sqrt.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/reciprocal_div.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/cordic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(math/rational.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/chacha.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/libchacha.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/aes.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/blake2s-generic.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/poly1305-donna64.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/poly1305.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(crypto/sha256.o):(".discard.ksym") is being placed in '".discard.ksym"'
ld.lld: warning: lib/built-in.a(iomap.o):(".discard.ksym") is being placed in '".discard.ksym"'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[frank-w-bpi-r2-4.14:5.8-rc 5/38] drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/assoc.c:1549:44-45: WARNING: Use ARRAY_SIZE
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.8-rc
head: ca0d6f7786586ca7ba424d5967d780dd3c75748b
commit: 9a72d145abe49d9cb1e16d479b0b18caa20cdd71 [5/38] mt6625l: include wifi-folder
config: arm-randconfig-c023-20200712 (attached as .config)
compiler: arm-linux-gnueabi-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>
coccinelle warnings: (new ones prefixed by >>)
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/assoc.c:1549:44-45: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/auth.c:820:39-40: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/auth.c:389:37-38: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/auth.c:426:37-38: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/auth.c:483:37-38: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/auth.c:559:37-38: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:799:45-46: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_init.c:801:45-46: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_proc.c:899:31-32: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_wext.c:412:41-42: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/hem_mbox.c:610:29-30: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic.c:681:66-67: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_func.c:3176:38-39: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_func.c:3212:43-44: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_func.c:2927:42-43: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_ie.c:472:41-42: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_ie.c:507:46-47: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/scan.c:2062:42-43: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/swcr.c:970:38-39: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/swcr.c:947:36-37: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:4252:35-36: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2677:55-56: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2680:57-58: WARNING: Use ARRAY_SIZE
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3361:43-44: WARNING: Use ARRAY_SIZE
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_cfg80211.c:1587:54-55: WARNING comparing pointer to 0
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:999:54-55: WARNING comparing pointer to 0
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:1070:68-73: WARNING: conversion to bool not needed here
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_bow.c:328:1-3: ERROR: test of a variable/field address
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_rlm.c:414:7-15: ERROR: iterator variable bound on line 412 cannot be NULL
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_wext_priv.c:2821:12-19: WARNING opportunity for memdup_user
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/ais_fsm.c:4945:13-24: Unneeded variable: "rWlanStatus". Return "WLAN_STATUS_SUCCESS" on line 5003
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_kal.c:1356:13-20: Unneeded variable: "rStatus". Return "WLAN_STATUS_SUCCESS" on line 1368
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:2435:5-13: Unneeded variable: "i4Status". Return "0" on line 2490
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:2350:5-13: Unneeded variable: "i4Status". Return "0" on line 2411
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1607:5-11: Unneeded variable: "status". Return "0" on line 1688
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_cfg80211.c:1795:5-11: Unneeded variable: "status". Return "0" on line 1848
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_wext_priv.c:2649:13-20: Unneeded variable: "rStatus". Return "WLAN_STATUS_SUCCESS" on line 2662
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_fsm.c:3012:13-20: Unneeded variable: "rStatus". Return "WLAN_STATUS_SUCCESS" on line 3022
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_fsm.c:3068:13-24: Unneeded variable: "rWlanStatus". Return "WLAN_STATUS_SUCCESS" on line 3091
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_fsm.c:3036:13-24: Unneeded variable: "rWlanStatus". Return "WLAN_STATUS_SUCCESS" on line 3049
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_func.c:2056:9-26: Unneeded variable: "fgIsReplyProbeRsp". Return "FALSE" on line 2077
>> drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/p2p_func.c:1301:13-24: Unneeded variable: "rWlanStatus". Return "WLAN_STATUS_SUCCESS" on line 1373
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:1689:13-21: Unneeded variable: "u4Status". Return "WLAN_STATUS_SUCCESS" on line 1775
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:5224:15-22: Unneeded variable: "rStatus". Return "WLAN_STATUS_SUCCESS" on line 5227
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_oid.c:5259:15-22: Unneeded variable: "rStatus". Return "WLAN_STATUS_SUCCESS" on line 5262
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_p2p.c:1259:13-24: Unneeded variable: "rWlanStatus". Return "WLAN_STATUS_SUCCESS" on line 1282
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_pwr_mgt.c:650:2-3: Unneeded semicolon
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_tx.c:1955:2-3: Unneeded semicolon
drivers/misc/mediatek/connectivity/wlan/gen2/nic/nic_tx.c:1129:2-3: Unneeded semicolon
--
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:1719:4-5: Unneeded semicolon
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3173:2-3: Unneeded semicolon
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2994:2-3: Unneeded semicolon
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2916:2-3: Unneeded semicolon
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2646:2-3: Unneeded semicolon
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[arm:zii 29/83] drivers/net/ethernet/mediatek/mtk_eth_soc.c:428:27: error: 'eth' undeclared
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: 3aa548572ce7d943c33ccb14ea1d5fe4027e2d47
commit: 4e14d82eda5c2b311ae01271d353e8f948468c81 [29/83] net: mtk_eth_soc: use resolved link config for PCS PHY
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git checkout 4e14d82eda5c2b311ae01271d353e8f948468c81
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/mediatek/mtk_eth_soc.c:68:5: warning: no previous prototype for 'mtk_m32' [-Wmissing-prototypes]
68 | u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
| ^~~~~~~
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:23:
drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_mac_link_up':
>> drivers/net/ethernet/mediatek/mtk_eth_soc.c:428:27: error: 'eth' undeclared (first use in this function)
428 | int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
| ^~~
drivers/net/ethernet/mediatek/mtk_eth_soc.h:761:36: note: in definition of macro 'MTK_HAS_CAPS'
761 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x))
| ^~~~
drivers/net/ethernet/mediatek/mtk_eth_soc.c:428:27: note: each undeclared identifier is reported only once for each function it appears in
428 | int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
| ^~~
drivers/net/ethernet/mediatek/mtk_eth_soc.h:761:36: note: in definition of macro 'MTK_HAS_CAPS'
761 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x))
| ^~~~
vim +/eth +428 drivers/net/ethernet/mediatek/mtk_eth_soc.c
416
417 static void mtk_mac_link_up(struct phylink_config *config,
418 struct phy_device *phy,
419 unsigned int mode, phy_interface_t interface,
420 int speed, int duplex, bool tx_pause, bool rx_pause)
421 {
422 struct mtk_mac *mac = container_of(config, struct mtk_mac,
423 phylink_config);
424 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id));
425
426 if (phy_interface_mode_is_8023z(interface)) {
427 /* Decide how GMAC and SGMIISYS be mapped */
> 428 int sid = (MTK_HAS_CAPS(eth->soc->caps, MTK_SHARED_SGMII)) ?
429 0 : mac->id;
430 mtk_sgmii_link_up(eth->sgmii, sid, speed, duplex);
431 }
432
433 mcr &= ~(MAC_MCR_SPEED_100 | MAC_MCR_SPEED_1000 |
434 MAC_MCR_FORCE_DPX | MAC_MCR_FORCE_TX_FC |
435 MAC_MCR_FORCE_RX_FC);
436
437 /* Configure speed */
438 switch (speed) {
439 case SPEED_2500:
440 case SPEED_1000:
441 mcr |= MAC_MCR_SPEED_1000;
442 break;
443 case SPEED_100:
444 mcr |= MAC_MCR_SPEED_100;
445 break;
446 }
447
448 /* Configure duplex */
449 if (duplex == DUPLEX_FULL)
450 mcr |= MAC_MCR_FORCE_DPX;
451
452 /* Configure pause modes - phylink will avoid these for half duplex */
453 if (tx_pause)
454 mcr |= MAC_MCR_FORCE_TX_FC;
455 if (rx_pause)
456 mcr |= MAC_MCR_FORCE_RX_FC;
457
458 mcr |= MAC_MCR_TX_EN | MAC_MCR_RX_EN;
459 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id));
460 }
461
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months