drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: sparse: incorrect type in argument 1 (different address spaces)

From: kernel test robot
Date: Thu Oct 01 2020 - 12:57:17 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 60e720931556fc1034d0981460164dcf02697679
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 5 weeks ago
config: sh-randconfig-s031-20200930 (attached as .config)
compiler: sh4-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-201-g24bdaac6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# 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=sh

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

echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short header @@ got restricted __le16 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned short header
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le16 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] address @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned int [usertype] address
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] data @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: expected unsigned int [usertype] data
drivers/usb/misc/sisusbvga/sisusb.c:542:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short header @@ got restricted __le16 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned short header
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le16 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] address @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned int [usertype] address
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] data @@ got restricted __le32 [usertype] @@
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: expected unsigned int [usertype] data
drivers/usb/misc/sisusbvga/sisusb.c:578:9: sparse: got restricted __le32 [usertype]
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: expected unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: got unsigned char [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
>> drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:780:37: sparse: got unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: expected unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: got unsigned short [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned short const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:795:37: sparse: got unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:842:37: sparse: got unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: expected unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: got unsigned char [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:2653:29: sparse: got unsigned char const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: expected unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: got unsigned short [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned short const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:2664:29: sparse: got unsigned short const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: got unsigned int [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:2675:29: sparse: got unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: expected unsigned int const *__gu_addr
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/misc/sisusbvga/sisusb.c:2740:21: sparse: got unsigned int const *__gu_addr
--
drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected char const *__gu_addr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int [noderef] __user *p
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int const *__gu_addr
--
drivers/media/rc/lirc_dev.c:378:23: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *argp @@
drivers/media/rc/lirc_dev.c:378:23: sparse: expected unsigned int const *__gu_addr
drivers/media/rc/lirc_dev.c:378:23: sparse: got unsigned int [noderef] [usertype] __user *argp
>> drivers/media/rc/lirc_dev.c:378:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
>> drivers/media/rc/lirc_dev.c:378:23: sparse: expected void const volatile [noderef] __user *ptr
drivers/media/rc/lirc_dev.c:378:23: sparse: got unsigned int const *__gu_addr
--
drivers/usb/image/mdc800.c:806:20: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/usb/image/mdc800.c:806:20: sparse: expected char const *__gu_addr
drivers/usb/image/mdc800.c:806:20: sparse: got char const [noderef] __user *
>> drivers/usb/image/mdc800.c:806:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
>> drivers/usb/image/mdc800.c:806:20: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/image/mdc800.c:806:20: sparse: got char const *__gu_addr
--
sound/core/oss/pcm_oss.c:2592:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2592:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2592:21: sparse: got int [noderef] __user *p
>> sound/core/oss/pcm_oss.c:2592:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> sound/core/oss/pcm_oss.c:2592:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2592:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2603:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2603:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2603:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2603:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2603:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2603:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2615:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2615:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2615:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2615:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2615:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2615:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2627:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2627:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2627:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2627:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2627:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2627:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2644:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2644:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2644:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2644:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2644:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2644:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2651:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2651:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2651:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2651:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2651:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2651:21: sparse: got int const *__gu_addr
sound/core/oss/pcm_oss.c:2678:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
sound/core/oss/pcm_oss.c:2678:21: sparse: expected int const *__gu_addr
sound/core/oss/pcm_oss.c:2678:21: sparse: got int [noderef] __user *p
sound/core/oss/pcm_oss.c:2678:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
sound/core/oss/pcm_oss.c:2678:21: sparse: expected void const volatile [noderef] __user *ptr
sound/core/oss/pcm_oss.c:2678:21: sparse: got int const *__gu_addr
--
fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user *buffer @@
fs/cifs/dfs_cache.c:195:14: sparse: expected char const *__gu_addr
fs/cifs/dfs_cache.c:195:14: sparse: got char const [noderef] __user *buffer
>> fs/cifs/dfs_cache.c:195:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
>> fs/cifs/dfs_cache.c:195:14: sparse: expected void const volatile [noderef] __user *ptr
fs/cifs/dfs_cache.c:195:14: sparse: got char const *__gu_addr
--
net/tls/tls_main.c:341:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/tls/tls_main.c:341:13: sparse: expected int const *__gu_addr
net/tls/tls_main.c:341:13: sparse: got int [noderef] __user *optlen
>> net/tls/tls_main.c:341:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/tls/tls_main.c:341:13: sparse: expected void const volatile [noderef] __user *ptr
net/tls/tls_main.c:341:13: sparse: got int const *__gu_addr
--
net/ipv6/ip6mr.c:1837:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/ipv6/ip6mr.c:1837:13: sparse: expected int const *__gu_addr
net/ipv6/ip6mr.c:1837:13: sparse: got int [noderef] __user *optlen
>> net/ipv6/ip6mr.c:1837:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/ipv6/ip6mr.c:1837:13: sparse: expected void const volatile [noderef] __user *ptr
net/ipv6/ip6mr.c:1837:13: sparse: got int const *__gu_addr
net/ipv6/ip6mr.c:405:13: sparse: sparse: context imbalance in 'ip6mr_vif_seq_start' - different lock contexts for basic block
net/ipv6/ip6mr.c: note: in included file (through include/linux/mroute6.h):
include/linux/mroute_base.h:427:31: sparse: sparse: context imbalance in 'mr_mfc_seq_stop' - unexpected unlock
--
net/dccp/proto.c:535:52: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 const [usertype] service @@ got int [addressable] val @@
net/dccp/proto.c:535:52: sparse: expected restricted __be32 const [usertype] service
net/dccp/proto.c:535:52: sparse: got int [addressable] val
net/dccp/proto.c:620:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/dccp/proto.c:620:13: sparse: expected int const *__gu_addr
net/dccp/proto.c:620:13: sparse: got int [noderef] __user *optlen
>> net/dccp/proto.c:620:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/dccp/proto.c:620:13: sparse: expected void const volatile [noderef] __user *ptr
net/dccp/proto.c:620:13: sparse: got int const *__gu_addr
net/dccp/proto.c:718:57: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 [usertype] param @@ got int cmsg_type @@
net/dccp/proto.c:718:57: sparse: expected restricted __be32 [usertype] param
net/dccp/proto.c:718:57: sparse: got int cmsg_type
--
fs/ocfs2/ioctl.c:860:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/ocfs2/ioctl.c:860:21: sparse: expected int const *__gu_addr
fs/ocfs2/ioctl.c:860:21: sparse: got int [noderef] __user *
>> fs/ocfs2/ioctl.c:860:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> fs/ocfs2/ioctl.c:860:21: sparse: expected void const volatile [noderef] __user *ptr
fs/ocfs2/ioctl.c:860:21: sparse: got int const *__gu_addr
fs/ocfs2/ioctl.c:882:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/ocfs2/ioctl.c:882:21: sparse: expected int const *__gu_addr
fs/ocfs2/ioctl.c:882:21: sparse: got int [noderef] __user *
fs/ocfs2/ioctl.c:882:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/ocfs2/ioctl.c:882:21: sparse: expected void const volatile [noderef] __user *ptr
fs/ocfs2/ioctl.c:882:21: sparse: got int const *__gu_addr
--
net/x25/af_x25.c:470:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/x25/af_x25.c:470:13: sparse: expected int const *__gu_addr
net/x25/af_x25.c:470:13: sparse: got int [noderef] __user *optlen
>> net/x25/af_x25.c:470:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/x25/af_x25.c:470:13: sparse: expected void const volatile [noderef] __user *ptr
net/x25/af_x25.c:470:13: sparse: got int const *__gu_addr
--
net/netrom/af_netrom.c:359:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/netrom/af_netrom.c:359:13: sparse: expected int const *__gu_addr
net/netrom/af_netrom.c:359:13: sparse: got int [noderef] __user *optlen
>> net/netrom/af_netrom.c:359:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/netrom/af_netrom.c:359:13: sparse: expected void const volatile [noderef] __user *ptr
net/netrom/af_netrom.c:359:13: sparse: got int const *__gu_addr
--
net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/rose/af_rose.c:438:13: sparse: expected int const *__gu_addr
net/rose/af_rose.c:438:13: sparse: got int [noderef] __user *optlen
>> net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/rose/af_rose.c:438:13: sparse: expected void const volatile [noderef] __user *ptr
net/rose/af_rose.c:438:13: sparse: got int const *__gu_addr
--
net/ax25/af_ax25.c:695:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/ax25/af_ax25.c:695:13: sparse: expected int const *__gu_addr
net/ax25/af_ax25.c:695:13: sparse: got int [noderef] __user *optlen
>> net/ax25/af_ax25.c:695:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/ax25/af_ax25.c:695:13: sparse: expected void const volatile [noderef] __user *ptr
net/ax25/af_ax25.c:695:13: sparse: got int const *__gu_addr
net/ax25/af_ax25.c:1742:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected long const *__gu_addr @@ got long [noderef] __user * @@
net/ax25/af_ax25.c:1742:21: sparse: expected long const *__gu_addr
net/ax25/af_ax25.c:1742:21: sparse: got long [noderef] __user *
>> net/ax25/af_ax25.c:1742:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got long const *__gu_addr @@
net/ax25/af_ax25.c:1742:21: sparse: expected void const volatile [noderef] __user *ptr
net/ax25/af_ax25.c:1742:21: sparse: got long const *__gu_addr
--
net/rxrpc/af_rxrpc.c:697:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *_optlen @@
net/rxrpc/af_rxrpc.c:697:13: sparse: expected int const *__gu_addr
net/rxrpc/af_rxrpc.c:697:13: sparse: got int [noderef] __user *_optlen
>> net/rxrpc/af_rxrpc.c:697:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/rxrpc/af_rxrpc.c:697:13: sparse: expected void const volatile [noderef] __user *ptr
net/rxrpc/af_rxrpc.c:697:13: sparse: got int const *__gu_addr
--
net/l2tp/l2tp_ppp.c:1376:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/l2tp/l2tp_ppp.c:1376:13: sparse: expected int const *__gu_addr
net/l2tp/l2tp_ppp.c:1376:13: sparse: got int [noderef] __user *optlen
>> net/l2tp/l2tp_ppp.c:1376:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/l2tp/l2tp_ppp.c:1376:13: sparse: expected void const volatile [noderef] __user *ptr
net/l2tp/l2tp_ppp.c:1376:13: sparse: got int const *__gu_addr
--
net/sctp/socket.c:7814:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@
net/sctp/socket.c:7814:13: sparse: expected int const *__gu_addr
net/sctp/socket.c:7814:13: sparse: got int [noderef] __user *optlen
>> net/sctp/socket.c:7814:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> net/sctp/socket.c:7814:13: sparse: expected void const volatile [noderef] __user *ptr
net/sctp/socket.c:7814:13: sparse: got int const *__gu_addr
net/sctp/socket.c:8210:20: sparse: sparse: context imbalance in 'sctp_get_port_local' - unexpected unlock
--
drivers/block/rbd.c:699:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/block/rbd.c:699:13: sparse: expected int const *__gu_addr
drivers/block/rbd.c:699:13: sparse: got int [noderef] __user *
>> drivers/block/rbd.c:699:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/block/rbd.c:699:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/block/rbd.c:699:13: sparse: got int const *__gu_addr
--
drivers/net/tap.c:53:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *sp @@
drivers/net/tap.c:53:13: sparse: expected int const *__gu_addr
drivers/net/tap.c:53:13: sparse: got int [noderef] __user *sp
>> drivers/net/tap.c:53:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/tap.c:53:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:53:13: sparse: got int const *__gu_addr
drivers/net/tap.c:991:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected short const *__gu_addr @@ got short [noderef] __user * @@
drivers/net/tap.c:991:21: sparse: expected short const *__gu_addr
drivers/net/tap.c:991:21: sparse: got short [noderef] __user *
>> drivers/net/tap.c:991:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got short const *__gu_addr @@
drivers/net/tap.c:991:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:991:21: sparse: got short const *__gu_addr
drivers/net/tap.c:1020:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected short const *__gu_addr @@ got short [noderef] __user * @@
drivers/net/tap.c:1020:21: sparse: expected short const *__gu_addr
drivers/net/tap.c:1020:21: sparse: got short [noderef] __user *
drivers/net/tap.c:1020:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got short const *__gu_addr @@
drivers/net/tap.c:1020:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:1020:21: sparse: got short const *__gu_addr
drivers/net/tap.c:1033:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *sp @@
drivers/net/tap.c:1033:21: sparse: expected int const *__gu_addr
drivers/net/tap.c:1033:21: sparse: got int [noderef] __user *sp
drivers/net/tap.c:1033:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/tap.c:1033:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:1033:21: sparse: got int const *__gu_addr
drivers/net/tap.c:1048:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *sp @@
drivers/net/tap.c:1048:21: sparse: expected int const *__gu_addr
drivers/net/tap.c:1048:21: sparse: got int [noderef] __user *sp
drivers/net/tap.c:1048:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/tap.c:1048:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:1048:21: sparse: got int const *__gu_addr
drivers/net/tap.c:1063:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *sp @@
drivers/net/tap.c:1063:21: sparse: expected int const *__gu_addr
drivers/net/tap.c:1063:21: sparse: got int [noderef] __user *sp
drivers/net/tap.c:1063:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/tap.c:1063:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tap.c:1063:21: sparse: got int const *__gu_addr
--
drivers/net/tun.c:330:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *argp @@
drivers/net/tun.c:330:13: sparse: expected int const *__gu_addr
drivers/net/tun.c:330:13: sparse: got int [noderef] __user *argp
>> drivers/net/tun.c:330:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/tun.c:330:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tun.c:330:13: sparse: got int const *__gu_addr
drivers/net/tun.c:3227:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/net/tun.c:3227:21: sparse: expected int const *__gu_addr
drivers/net/tun.c:3227:21: sparse: got int [noderef] __user *
drivers/net/tun.c:3227:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/tun.c:3227:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/tun.c:3227:21: sparse: got int const *__gu_addr
--
drivers/net/hamradio/6pack.c:710:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/net/hamradio/6pack.c:710:21: sparse: expected int const *__gu_addr
drivers/net/hamradio/6pack.c:710:21: sparse: got int [noderef] __user *
>> drivers/net/hamradio/6pack.c:710:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/hamradio/6pack.c:710:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/hamradio/6pack.c:710:21: sparse: got int const *__gu_addr
--
drivers/net/ppp/ppp_async.c:420:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_async.c:420:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_async.c:420:21: sparse: got int [noderef] __user *p
>> drivers/net/ppp/ppp_async.c:420:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/ppp/ppp_async.c:420:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_async.c:420:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_async.c:435:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/net/ppp/ppp_async.c:435:21: sparse: expected unsigned int const *__gu_addr
drivers/net/ppp/ppp_async.c:435:21: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/net/ppp/ppp_async.c:435:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/net/ppp/ppp_async.c:435:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_async.c:435:21: sparse: got unsigned int const *__gu_addr
drivers/net/ppp/ppp_async.c:446:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/net/ppp/ppp_async.c:446:21: sparse: expected unsigned int const *__gu_addr
drivers/net/ppp/ppp_async.c:446:21: sparse: got unsigned int [noderef] [usertype] __user *
drivers/net/ppp/ppp_async.c:446:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/net/ppp/ppp_async.c:446:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_async.c:446:21: sparse: got unsigned int const *__gu_addr
drivers/net/ppp/ppp_async.c:471:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_async.c:471:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_async.c:471:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_async.c:471:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_async.c:471:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_async.c:471:21: sparse: got int const *__gu_addr
--
drivers/net/ppp/pppoe.c:765:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/net/ppp/pppoe.c:765:21: sparse: expected int const *__gu_addr
drivers/net/ppp/pppoe.c:765:21: sparse: got int [noderef] __user *
>> drivers/net/ppp/pppoe.c:765:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/ppp/pppoe.c:765:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/pppoe.c:765:21: sparse: got int const *__gu_addr
drivers/net/ppp/pppoe.c:778:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/net/ppp/pppoe.c:778:21: sparse: expected int const *__gu_addr
drivers/net/ppp/pppoe.c:778:21: sparse: got int [noderef] __user *
drivers/net/ppp/pppoe.c:778:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/pppoe.c:778:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/pppoe.c:778:21: sparse: got int const *__gu_addr
--
drivers/net/ppp/ppp_generic.c:925:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:925:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:925:21: sparse: got int [noderef] __user *p
>> drivers/net/ppp/ppp_generic.c:925:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
>> drivers/net/ppp/ppp_generic.c:925:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:925:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:939:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:939:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:939:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:939:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:939:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:939:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:954:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:954:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:954:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:954:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:954:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:954:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:651:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:651:29: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:651:29: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:651:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:651:29: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:651:29: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:681:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:681:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:681:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:681:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:681:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:681:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:688:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:688:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:688:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:688:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:688:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:688:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:726:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:726:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:726:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:726:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:726:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:726:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:755:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:755:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:755:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:755:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:755:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:755:21: sparse: got int const *__gu_addr
drivers/net/ppp/ppp_generic.c:823:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/net/ppp/ppp_generic.c:823:21: sparse: expected int const *__gu_addr
drivers/net/ppp/ppp_generic.c:823:21: sparse: got int [noderef] __user *p
drivers/net/ppp/ppp_generic.c:823:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/net/ppp/ppp_generic.c:823:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/net/ppp/ppp_generic.c:823:21: sparse: got int const *__gu_addr
--
drivers/usb/core/devio.c:313:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:313:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:313:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:314:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:314:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:314:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:315:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:315:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:315:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:316:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] *p @@ got restricted __le16 * @@
drivers/usb/core/devio.c:316:17: sparse: expected unsigned short [usertype] *p
drivers/usb/core/devio.c:316:17: sparse: got restricted __le16 *
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:937:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int [noderef] __user *
>> drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
>> drivers/usb/core/devio.c:937:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:938:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:938:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] __user * @@
drivers/usb/core/devio.c:953:21: sparse: expected unsigned char const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char [noderef] __user *
>> drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/usb/core/devio.c:953:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1290:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1290:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1309:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1309:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/usb/core/devio.c:1441:13: sparse: expected int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: got int [noderef] __user *
>> drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/usb/core/devio.c:1441:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1441:13: sparse: got int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2189:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2189:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2199:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2199:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2315:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2315:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2328:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2328:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int const *__gu_addr

vim +780 drivers/usb/misc/sisusbvga/sisusb.c

^1da177e4c3f415 Linus Torvalds 2005-04-16 743
^1da177e4c3f415 Linus Torvalds 2005-04-16 744 /* The xxx_bulk routines copy a buffer of variable size. They treat the
^1da177e4c3f415 Linus Torvalds 2005-04-16 745 * buffer as chars, therefore lsb/msb has to be corrected if using the
^1da177e4c3f415 Linus Torvalds 2005-04-16 746 * byte/word/long/etc routines for speed-up
^1da177e4c3f415 Linus Torvalds 2005-04-16 747 *
^1da177e4c3f415 Linus Torvalds 2005-04-16 748 * If data is from userland, set "userbuffer" (and clear "kernbuffer"),
^1da177e4c3f415 Linus Torvalds 2005-04-16 749 * if data is in kernel space, set "kernbuffer" (and clear "userbuffer");
^1da177e4c3f415 Linus Torvalds 2005-04-16 750 * if neither "kernbuffer" nor "userbuffer" are given, it is assumed
^1da177e4c3f415 Linus Torvalds 2005-04-16 751 * that the data already is in the transfer buffer "sisusb->obuf[index]".
^1da177e4c3f415 Linus Torvalds 2005-04-16 752 */
^1da177e4c3f415 Linus Torvalds 2005-04-16 753
^1da177e4c3f415 Linus Torvalds 2005-04-16 754 static int sisusb_write_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 755 char *kernbuffer, int length, const char __user *userbuffer,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 756 int index, ssize_t *bytes_written)
^1da177e4c3f415 Linus Torvalds 2005-04-16 757 {
^1da177e4c3f415 Linus Torvalds 2005-04-16 758 struct sisusb_packet packet;
^1da177e4c3f415 Linus Torvalds 2005-04-16 759 int ret = 0;
f996c49d4fa4e8e Peter Senna Tschudin 2016-01-15 760 static int msgcount;
^1da177e4c3f415 Linus Torvalds 2005-04-16 761 u8 swap8, fromkern = kernbuffer ? 1 : 0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 762 u16 swap16;
^1da177e4c3f415 Linus Torvalds 2005-04-16 763 u32 swap32, flag = (length >> 28) & 1;
2b53a19284f5371 Changming Liu 2020-07-11 764 u8 buf[4];
^1da177e4c3f415 Linus Torvalds 2005-04-16 765
^1da177e4c3f415 Linus Torvalds 2005-04-16 766 /* if neither kernbuffer not userbuffer are given, assume
^1da177e4c3f415 Linus Torvalds 2005-04-16 767 * data in obuf
^1da177e4c3f415 Linus Torvalds 2005-04-16 768 */
^1da177e4c3f415 Linus Torvalds 2005-04-16 769 if (!fromkern && !userbuffer)
^1da177e4c3f415 Linus Torvalds 2005-04-16 770 kernbuffer = sisusb->obuf[index];
^1da177e4c3f415 Linus Torvalds 2005-04-16 771
^1da177e4c3f415 Linus Torvalds 2005-04-16 772 (*bytes_written = 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 773
^1da177e4c3f415 Linus Torvalds 2005-04-16 774 length &= 0x00ffffff;
^1da177e4c3f415 Linus Torvalds 2005-04-16 775
^1da177e4c3f415 Linus Torvalds 2005-04-16 776 while (length) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 777 switch (length) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 778 case 1:
^1da177e4c3f415 Linus Torvalds 2005-04-16 779 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @780 if (get_user(swap8, (u8 __user *)userbuffer))
^1da177e4c3f415 Linus Torvalds 2005-04-16 781 return -EFAULT;
^1da177e4c3f415 Linus Torvalds 2005-04-16 782 } else
^1da177e4c3f415 Linus Torvalds 2005-04-16 783 swap8 = kernbuffer[0];
^1da177e4c3f415 Linus Torvalds 2005-04-16 784
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 785 ret = sisusb_write_memio_byte(sisusb, SISUSB_TYPE_MEM,
^1da177e4c3f415 Linus Torvalds 2005-04-16 786 addr, swap8);
^1da177e4c3f415 Linus Torvalds 2005-04-16 787
^1da177e4c3f415 Linus Torvalds 2005-04-16 788 if (!ret)
^1da177e4c3f415 Linus Torvalds 2005-04-16 789 (*bytes_written)++;
^1da177e4c3f415 Linus Torvalds 2005-04-16 790
^1da177e4c3f415 Linus Torvalds 2005-04-16 791 return ret;
^1da177e4c3f415 Linus Torvalds 2005-04-16 792
^1da177e4c3f415 Linus Torvalds 2005-04-16 793 case 2:
^1da177e4c3f415 Linus Torvalds 2005-04-16 794 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @795 if (get_user(swap16, (u16 __user *)userbuffer))
^1da177e4c3f415 Linus Torvalds 2005-04-16 796 return -EFAULT;
^1da177e4c3f415 Linus Torvalds 2005-04-16 797 } else
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 798 swap16 = *((u16 *)kernbuffer);
^1da177e4c3f415 Linus Torvalds 2005-04-16 799
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 800 ret = sisusb_write_memio_word(sisusb, SISUSB_TYPE_MEM,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 801 addr, swap16);
^1da177e4c3f415 Linus Torvalds 2005-04-16 802
^1da177e4c3f415 Linus Torvalds 2005-04-16 803 if (!ret)
^1da177e4c3f415 Linus Torvalds 2005-04-16 804 (*bytes_written) += 2;
^1da177e4c3f415 Linus Torvalds 2005-04-16 805
^1da177e4c3f415 Linus Torvalds 2005-04-16 806 return ret;
^1da177e4c3f415 Linus Torvalds 2005-04-16 807
^1da177e4c3f415 Linus Torvalds 2005-04-16 808 case 3:
^1da177e4c3f415 Linus Torvalds 2005-04-16 809 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 810 if (copy_from_user(&buf, userbuffer, 3))
^1da177e4c3f415 Linus Torvalds 2005-04-16 811 return -EFAULT;
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 812 #ifdef __BIG_ENDIAN
^1da177e4c3f415 Linus Torvalds 2005-04-16 813 swap32 = (buf[0] << 16) |
^1da177e4c3f415 Linus Torvalds 2005-04-16 814 (buf[1] << 8) |
^1da177e4c3f415 Linus Torvalds 2005-04-16 815 buf[2];
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 816 #else
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 817 swap32 = (buf[2] << 16) |
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 818 (buf[1] << 8) |
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 819 buf[0];
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 820 #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16 821 } else
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 822 #ifdef __BIG_ENDIAN
^1da177e4c3f415 Linus Torvalds 2005-04-16 823 swap32 = (kernbuffer[0] << 16) |
^1da177e4c3f415 Linus Torvalds 2005-04-16 824 (kernbuffer[1] << 8) |
^1da177e4c3f415 Linus Torvalds 2005-04-16 825 kernbuffer[2];
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 826 #else
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 827 swap32 = (kernbuffer[2] << 16) |
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 828 (kernbuffer[1] << 8) |
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 829 kernbuffer[0];
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 830 #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16 831
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 832 ret = sisusb_write_memio_24bit(sisusb, SISUSB_TYPE_MEM,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 833 addr, swap32);
^1da177e4c3f415 Linus Torvalds 2005-04-16 834
^1da177e4c3f415 Linus Torvalds 2005-04-16 835 if (!ret)
^1da177e4c3f415 Linus Torvalds 2005-04-16 836 (*bytes_written) += 3;
^1da177e4c3f415 Linus Torvalds 2005-04-16 837
^1da177e4c3f415 Linus Torvalds 2005-04-16 838 return ret;
^1da177e4c3f415 Linus Torvalds 2005-04-16 839
^1da177e4c3f415 Linus Torvalds 2005-04-16 840 case 4:
^1da177e4c3f415 Linus Torvalds 2005-04-16 841 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @842 if (get_user(swap32, (u32 __user *)userbuffer))
^1da177e4c3f415 Linus Torvalds 2005-04-16 843 return -EFAULT;
^1da177e4c3f415 Linus Torvalds 2005-04-16 844 } else
1bbb4f2035d94d8 Thomas Winischhofer 2005-08-29 845 swap32 = *((u32 *)kernbuffer);
^1da177e4c3f415 Linus Torvalds 2005-04-16 846
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 847 ret = sisusb_write_memio_long(sisusb, SISUSB_TYPE_MEM,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 848 addr, swap32);
^1da177e4c3f415 Linus Torvalds 2005-04-16 849 if (!ret)
^1da177e4c3f415 Linus Torvalds 2005-04-16 850 (*bytes_written) += 4;
^1da177e4c3f415 Linus Torvalds 2005-04-16 851
^1da177e4c3f415 Linus Torvalds 2005-04-16 852 return ret;
^1da177e4c3f415 Linus Torvalds 2005-04-16 853
^1da177e4c3f415 Linus Torvalds 2005-04-16 854 default:
^1da177e4c3f415 Linus Torvalds 2005-04-16 855 if ((length & ~3) > 0x10000) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 856
^1da177e4c3f415 Linus Torvalds 2005-04-16 857 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 858 packet.address = 0x000001d4;
^1da177e4c3f415 Linus Torvalds 2005-04-16 859 packet.data = addr;
^1da177e4c3f415 Linus Torvalds 2005-04-16 860 ret = sisusb_send_bridge_packet(sisusb, 10,
^1da177e4c3f415 Linus Torvalds 2005-04-16 861 &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 862 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 863 packet.address = 0x000001d0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 864 packet.data = (length & ~3);
^1da177e4c3f415 Linus Torvalds 2005-04-16 865 ret |= sisusb_send_bridge_packet(sisusb, 10,
^1da177e4c3f415 Linus Torvalds 2005-04-16 866 &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 867 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 868 packet.address = 0x000001c0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 869 packet.data = flag | 0x16;
^1da177e4c3f415 Linus Torvalds 2005-04-16 870 ret |= sisusb_send_bridge_packet(sisusb, 10,
^1da177e4c3f415 Linus Torvalds 2005-04-16 871 &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 872 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 873 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 874 SISUSB_EP_GFX_LBULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 875 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 876 NULL, userbuffer, 0,
^1da177e4c3f415 Linus Torvalds 2005-04-16 877 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 878 userbuffer += (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 879 } else if (fromkern) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 880 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 881 SISUSB_EP_GFX_LBULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 882 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 883 kernbuffer, NULL, 0,
^1da177e4c3f415 Linus Torvalds 2005-04-16 884 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 885 kernbuffer += (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 886 } else {
^1da177e4c3f415 Linus Torvalds 2005-04-16 887 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 888 SISUSB_EP_GFX_LBULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 889 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 890 NULL, NULL, index,
^1da177e4c3f415 Linus Torvalds 2005-04-16 891 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 892 kernbuffer += ((*bytes_written) &
^1da177e4c3f415 Linus Torvalds 2005-04-16 893 (sisusb->obufsize-1));
^1da177e4c3f415 Linus Torvalds 2005-04-16 894 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 895
^1da177e4c3f415 Linus Torvalds 2005-04-16 896 } else {
^1da177e4c3f415 Linus Torvalds 2005-04-16 897
^1da177e4c3f415 Linus Torvalds 2005-04-16 898 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 899 packet.address = 0x00000194;
^1da177e4c3f415 Linus Torvalds 2005-04-16 900 packet.data = addr;
^1da177e4c3f415 Linus Torvalds 2005-04-16 901 ret = sisusb_send_bridge_packet(sisusb, 10,
^1da177e4c3f415 Linus Torvalds 2005-04-16 902 &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 903 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 904 packet.address = 0x00000190;
^1da177e4c3f415 Linus Torvalds 2005-04-16 905 packet.data = (length & ~3);
^1da177e4c3f415 Linus Torvalds 2005-04-16 906 ret |= sisusb_send_bridge_packet(sisusb, 10,
^1da177e4c3f415 Linus Torvalds 2005-04-16 907 &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 908 if (sisusb->flagb0 != 0x16) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 909 packet.header = 0x001f;
^1da177e4c3f415 Linus Torvalds 2005-04-16 910 packet.address = 0x00000180;
^1da177e4c3f415 Linus Torvalds 2005-04-16 911 packet.data = flag | 0x16;
f74a039c7e0bf6b Peter Senna Tschudin 2016-01-15 912 ret |= sisusb_send_bridge_packet(sisusb,
f74a039c7e0bf6b Peter Senna Tschudin 2016-01-15 913 10, &packet, 0);
^1da177e4c3f415 Linus Torvalds 2005-04-16 914 sisusb->flagb0 = 0x16;
^1da177e4c3f415 Linus Torvalds 2005-04-16 915 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 916 if (userbuffer) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 917 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 918 SISUSB_EP_GFX_BULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 919 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 920 NULL, userbuffer, 0,
^1da177e4c3f415 Linus Torvalds 2005-04-16 921 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 922 userbuffer += (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 923 } else if (fromkern) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 924 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 925 SISUSB_EP_GFX_BULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 926 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 927 kernbuffer, NULL, 0,
^1da177e4c3f415 Linus Torvalds 2005-04-16 928 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 929 kernbuffer += (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 930 } else {
^1da177e4c3f415 Linus Torvalds 2005-04-16 931 ret |= sisusb_send_bulk_msg(sisusb,
^1da177e4c3f415 Linus Torvalds 2005-04-16 932 SISUSB_EP_GFX_BULK_OUT,
^1da177e4c3f415 Linus Torvalds 2005-04-16 933 (length & ~3),
^1da177e4c3f415 Linus Torvalds 2005-04-16 934 NULL, NULL, index,
^1da177e4c3f415 Linus Torvalds 2005-04-16 935 bytes_written, 0, 1);
^1da177e4c3f415 Linus Torvalds 2005-04-16 936 kernbuffer += ((*bytes_written) &
^1da177e4c3f415 Linus Torvalds 2005-04-16 937 (sisusb->obufsize-1));
^1da177e4c3f415 Linus Torvalds 2005-04-16 938 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 939 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 940 if (ret) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 941 msgcount++;
^1da177e4c3f415 Linus Torvalds 2005-04-16 942 if (msgcount < 500)
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 943 dev_err(&sisusb->sisusb_dev->dev,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 944 "Wrote %zd of %d bytes, error %d\n",
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 945 *bytes_written, length,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 946 ret);
^1da177e4c3f415 Linus Torvalds 2005-04-16 947 else if (msgcount == 500)
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 948 dev_err(&sisusb->sisusb_dev->dev,
06e21efa2d344b5 Peter Senna Tschudin 2016-01-15 949 "Too many errors, logging stopped\n");
^1da177e4c3f415 Linus Torvalds 2005-04-16 950 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 951 addr += (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 952 length -= (*bytes_written);
^1da177e4c3f415 Linus Torvalds 2005-04-16 953 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 954
^1da177e4c3f415 Linus Torvalds 2005-04-16 955 if (ret)
^1da177e4c3f415 Linus Torvalds 2005-04-16 956 break;
^1da177e4c3f415 Linus Torvalds 2005-04-16 957
^1da177e4c3f415 Linus Torvalds 2005-04-16 958 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 959
^1da177e4c3f415 Linus Torvalds 2005-04-16 960 return ret ? -EIO : 0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 961 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 962

:::::: The code at line 780 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip