Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Florian Westphal <fw@strlen.de>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 134/141] net/core/rtnetlink.c:155:15: sparse: incompatible types in comparison expression (different address spaces)
Date: Tue, 5 Dec 2017 02:58:09 +0800	[thread overview]
Message-ID: <201712050205.aLGp4z4m%fengguang.wu@intel.com> (raw)

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

                 reply	other threads:[~2017-12-04 18:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201712050205.aLGp4z4m%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=fw@strlen.de \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox