Netdev List
 help / color / mirror / Atom feed
* [net-next:master 134/141] net/core/rtnetlink.c:155:15: sparse: incompatible types in comparison expression (different address spaces)
@ 2017-12-04 18:58 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-04 18:58 UTC (permalink / raw)
  To: Florian Westphal; +Cc: kbuild-all, netdev

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   a3fde2addd5f0218b64102005a237ef727b0dc30
commit: addf9b90de22f7aaad0db39bccb5d51ac47dd4e1 [134/141] net: rtnetlink: use rcu to free rtnl message handlers
reproduce:
        # apt-get install sparse
        git checkout addf9b90de22f7aaad0db39bccb5d51ac47dd4e1
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +155 net/core/rtnetlink.c

   147	
   148	static struct rtnl_link *rtnl_get_link(int protocol, int msgtype)
   149	{
   150		struct rtnl_link **tab;
   151	
   152		if (protocol >= ARRAY_SIZE(rtnl_msg_handlers))
   153			protocol = PF_UNSPEC;
   154	
 > 155		tab = rcu_dereference_rtnl(rtnl_msg_handlers[protocol]);
   156		if (!tab)
   157			tab = rcu_dereference_rtnl(rtnl_msg_handlers[PF_UNSPEC]);
   158	
   159		return tab[msgtype];
   160	}
   161	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

only message in thread, other threads:[~2017-12-04 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 18:58 [net-next:master 134/141] net/core/rtnetlink.c:155:15: sparse: incompatible types in comparison expression (different address spaces) kbuild test robot

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