Netdev List
 help / color / mirror / Atom feed
* [net-next:master 207/208] net/tipc/bearer.c:560:48: sparse: incompatible types in comparison expression (different base types)
@ 2016-04-07 22:10 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-04-07 22:10 UTC (permalink / raw)
  To: Jon Paul Maloy; +Cc: kbuild-all, netdev

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   889750bd2e08a94d52a116056d462b3a8e5616a7
commit: 5b7066c3dd24c7d538e5ee402eb24bb182c16dab [207/208] tipc: stricter filtering of packets in bearer layer
reproduce:
        # apt-get install sparse
        git checkout 5b7066c3dd24c7d538e5ee402eb24bb182c16dab
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> net/tipc/bearer.c:560:48: sparse: incompatible types in comparison expression (different base types)

vim +560 net/tipc/bearer.c

   544	 * This function is called by the Ethernet driver in case of link
   545	 * change event.
   546	 */
   547	static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt,
   548					void *ptr)
   549	{
   550		struct net_device *dev = netdev_notifier_info_to_dev(ptr);
   551		struct net *net = dev_net(dev);
   552		struct tipc_net *tn = tipc_net(net);
   553		struct tipc_bearer *b;
   554		int i;
   555	
   556		b = rtnl_dereference(dev->tipc_ptr);
   557		if (!b) {
   558			for (i = 0; i < MAX_BEARERS; b = NULL, i++) {
   559				b = rtnl_dereference(tn->bearer_list[i]);
 > 560				if (b && (b->media_ptr == dev))
   561					break;
   562			}
   563		}
   564		if (!b)
   565			return NOTIFY_DONE;
   566	
   567		b->mtu = dev->mtu;
   568	

---
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:[~2016-04-07 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 22:10 [net-next:master 207/208] net/tipc/bearer.c:560:48: sparse: incompatible types in comparison expression (different base types) 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