[linux-next:master 3985/7050] drivers/net/bareudp.c:227:14: sparse: sparse: incorrect type in assignment (different address spaces)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6
commit: 571912c69f0ed731bd1e071ade9dc7ca4aa52065 [3985/7050] net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-174-g094d5a94-dirty
        git checkout 571912c69f0ed731bd1e071ade9dc7ca4aa52065
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> drivers/net/bareudp.c:227:14: sparse: sparse: incorrect type in assignment (different address spaces) @@    expected struct socket *sock @@    got struct socket [nodstruct socket *sock @@
   drivers/net/bareudp.c:227:14: sparse:    expected struct socket *sock
   drivers/net/bareudp.c:227:14: sparse:    got struct socket [noderef] <asn:4> *sock
>> drivers/net/bareudp.c:512:28: sparse: sparse: incorrect type in assignment (different base types) @@    expected restricted __be16 [usertype] port @@    got 16 [usertype] port @@
   drivers/net/bareudp.c:512:28: sparse:    expected restricted __be16 [usertype] port
   drivers/net/bareudp.c:512:28: sparse:    got unsigned short
>> drivers/net/bareudp.c:515:33: sparse: sparse: incorrect type in assignment (different base types) @@    expected restricted __be16 [usertype] ethertype @@    got 16 [usertype] ethertype @@
   drivers/net/bareudp.c:515:33: sparse:    expected restricted __be16 [usertype] ethertype
   drivers/net/bareudp.c:515:33: sparse:    got unsigned short

vim +227 drivers/net/bareudp.c

   222	
   223	static void bareudp_sock_release(struct bareudp_dev *bareudp)
   224	{
   225		struct socket *sock;
   226	
 > 227		sock = bareudp->sock;
   228		rcu_assign_pointer(bareudp->sock, NULL);
   229		synchronize_net();
   230		udp_tunnel_sock_release(sock);
   231	}
   232	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux