mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* net/netfilter/nf_nat_amanda.c:75:9: sparse: sparse: incorrect type in assignment (different modifiers)
@ 2026-03-02 15:16 kernel test robot
  2026-03-03  7:28 ` sun jian
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-03-02 15:16 UTC (permalink / raw)
  To: Sun Jian; +Cc: oe-kbuild-all, linux-kernel, Florian Westphal

Hi Sun,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   11439c4635edd669ae435eec308f4ab8a0804808
commit: 07919126ecfc392102555a70016db3e591abcb3d netfilter: annotate NAT helper hook pointers with __rcu
date:   13 days ago
config: x86_64-randconfig-r123-20260302 (https://download.01.org/0day-ci/archive/20260302/202603022359.3dGE9fwI-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260302/202603022359.3dGE9fwI-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603022359.3dGE9fwI-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/netfilter/nf_nat_amanda.c:75:9: sparse: sparse: incorrect type in assignment (different modifiers) @@     expected unsigned int ( [noderef] __rcu *volatile  )( ... ) @@     got unsigned int ( [noderef] __rcu * )( ... ) @@
   net/netfilter/nf_nat_amanda.c:75:9: sparse:     expected unsigned int ( [noderef] __rcu *volatile  )( ... )
   net/netfilter/nf_nat_amanda.c:75:9: sparse:     got unsigned int ( [noderef] __rcu * )( ... )

vim +75 net/netfilter/nf_nat_amanda.c

16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  70  
16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  71  static int __init nf_nat_amanda_init(void)
16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  72  {
d1332e0ab84479d net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2007-11-05  73  	BUG_ON(nf_nat_amanda_hook != NULL);
53b11308a1b53d7 net/netfilter/nf_nat_amanda.c      Flavio Leitner    2019-04-17  74  	nf_nat_helper_register(&nat_helper_amanda);
a9b3cd7f323b2e5 net/ipv4/netfilter/nf_nat_amanda.c Stephen Hemminger 2011-08-01 @75  	RCU_INIT_POINTER(nf_nat_amanda_hook, help);
16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  76  	return 0;
16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  77  }
16958900578b945 net/ipv4/netfilter/nf_nat_amanda.c Patrick McHardy   2006-12-02  78  

:::::: The code at line 75 was first introduced by commit
:::::: a9b3cd7f323b2e57593e7215362a7b02fc933e3a rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER

:::::: TO: Stephen Hemminger <shemminger@vyatta.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-03  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-02 15:16 net/netfilter/nf_nat_amanda.c:75:9: sparse: sparse: incorrect type in assignment (different modifiers) kernel test robot
2026-03-03  7:28 ` sun jian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®