All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:7.1-rc 0/167] drivers/net/bareudp.c:288:12: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2026-07-03 11:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-03 11:50 UTC (permalink / raw)
  To: Frank Wunderlich; +Cc: oe-kbuild-all

tree:   https://github.com/frank-w/BPI-R2-4.14 7.1-rc
head:   866eb49750d39fe938dca71acece6f1540bb1123
commit: bc773b15eb19ae3e27dd3a3377f2fe006ce5f382 [0/167] bareudp: Store struct sock in struct bareudp_dev.
config: i386-randconfig-062-20260702 (https://download.01.org/0day-ci/archive/20260703/202607031901.7dWzEObt-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260703/202607031901.7dWzEObt-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: bc773b15eb19 ("bareudp: Store struct sock in struct bareudp_dev.")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607031901.7dWzEObt-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/bareudp.c:288:12: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sock *sk @@     got struct sock [noderef] __rcu *sk @@
   drivers/net/bareudp.c:288:12: sparse:     expected struct sock *sk
   drivers/net/bareudp.c:288:12: sparse:     got struct sock [noderef] __rcu *sk
   drivers/net/bareudp.c:623:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [usertype] port @@     got unsigned short @@
   drivers/net/bareudp.c:623:20: sparse:     expected restricted __be16 [usertype] port
   drivers/net/bareudp.c:623:20: sparse:     got unsigned short
   drivers/net/bareudp.c:624:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [usertype] ethertype @@     got unsigned short @@
   drivers/net/bareudp.c:624:25: sparse:     expected restricted __be16 [usertype] ethertype
   drivers/net/bareudp.c:624:25: sparse:     got unsigned short

vim +288 drivers/net/bareudp.c

   283	
   284	static void bareudp_sock_release(struct bareudp_dev *bareudp)
   285	{
   286		struct sock *sk;
   287	
 > 288		sk = bareudp->sk;
   289		rcu_assign_pointer(bareudp->sk, NULL);
   290		synchronize_net();
   291		udp_tunnel_sock_release(sk);
   292	}
   293	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-03 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 11:50 [frank-w-bpi-r2-4.14:7.1-rc 0/167] drivers/net/bareudp.c:288:12: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.