Linux wireless drivers development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Linus Lüssing" <linus.luessing@c0d3.blue>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
	"David S . Miller" <davem@davemloft.net>,
	"Stephen Hemminger" <stephen@networkplumber.org>,
	"Felix Fietkau" <nbd@nbd.name>,
	"Nikolay Aleksandrov" <nikolay@cumulusnetworks.com>,
	bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org,
	"Linus Lüssing" <linus.luessing@c0d3.blue>
Subject: Re: [PATCH net-next v2] bridge: multicast to unicast
Date: Wed, 18 Jan 2017 13:59:19 +0800	[thread overview]
Message-ID: <201701181302.v6H7jlK5%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170117195917.16209-1-linus.luessing@c0d3.blue>

[-- Attachment #1: Type: text/plain, Size: 3250 bytes --]

Hi Felix,

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Linus-L-ssing/bridge-multicast-to-unicast/20170118-120345
config: x86_64-rhel-7.2 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   net/bridge/br_forward.c: In function 'br_multicast_flood':
>> net/bridge/br_forward.c:261:27: warning: 'port' may be used uninitialized in this function [-Wmaybe-uninitialized]
      struct net_bridge_port *port, *lport, *rport;
                              ^~~~

vim +/port +261 net/bridge/br_forward.c

5cb5e947 Herbert Xu          2010-02-27  245  #ifdef CONFIG_BRIDGE_IGMP_SNOOPING
5cb5e947 Herbert Xu          2010-02-27  246  /* called with rcu_read_lock */
37b090e6 Nikolay Aleksandrov 2016-07-14  247  void br_multicast_flood(struct net_bridge_mdb_entry *mdst,
b35c5f63 Nikolay Aleksandrov 2016-07-14  248  			struct sk_buff *skb,
37b090e6 Nikolay Aleksandrov 2016-07-14  249  			bool local_rcv, bool local_orig)
5cb5e947 Herbert Xu          2010-02-27  250  {
5cb5e947 Herbert Xu          2010-02-27  251  	struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev;
1080ab95 Nikolay Aleksandrov 2016-06-28  252  	u8 igmp_type = br_multicast_igmp_type(skb);
5cb5e947 Herbert Xu          2010-02-27  253  	struct net_bridge *br = netdev_priv(dev);
afe0159d stephen hemminger   2010-04-27  254  	struct net_bridge_port *prev = NULL;
5cb5e947 Herbert Xu          2010-02-27  255  	struct net_bridge_port_group *p;
5cb5e947 Herbert Xu          2010-02-27  256  	struct hlist_node *rp;
5cb5e947 Herbert Xu          2010-02-27  257  
e8051688 Eric Dumazet        2010-11-15  258  	rp = rcu_dereference(hlist_first_rcu(&br->router_list));
83f6a740 stephen hemminger   2010-04-27  259  	p = mdst ? rcu_dereference(mdst->ports) : NULL;
5cb5e947 Herbert Xu          2010-02-27  260  	while (p || rp) {
afe0159d stephen hemminger   2010-04-27 @261  		struct net_bridge_port *port, *lport, *rport;
afe0159d stephen hemminger   2010-04-27  262  
5cb5e947 Herbert Xu          2010-02-27  263  		lport = p ? p->port : NULL;
5cb5e947 Herbert Xu          2010-02-27  264  		rport = rp ? hlist_entry(rp, struct net_bridge_port, rlist) :
5cb5e947 Herbert Xu          2010-02-27  265  			     NULL;
5cb5e947 Herbert Xu          2010-02-27  266  
507962cd Felix Fietkau       2017-01-17  267  		if ((unsigned long)lport > (unsigned long)rport) {
507962cd Felix Fietkau       2017-01-17  268  			if (p->flags & MDB_PG_FLAGS_MCAST_TO_UCAST) {
507962cd Felix Fietkau       2017-01-17  269  				maybe_deliver_addr(lport, skb, p->eth_addr,

:::::: The code at line 261 was first introduced by commit
:::::: afe0159d935ab731c682e811356914bb2be9470c bridge: multicast_flood cleanup

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

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38262 bytes --]

      reply	other threads:[~2017-01-18  6:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17 19:59 [PATCH net-next v2] bridge: multicast to unicast Linus Lüssing
2017-01-18  5:59 ` kbuild test robot [this message]

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=201701181302.v6H7jlK5%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=bridge@lists.linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=linus.luessing@c0d3.blue \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=nikolay@cumulusnetworks.com \
    --cc=stephen@networkplumber.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