[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1355143451.11752.20.camel@cr0>
Date: Mon, 10 Dec 2012 20:44:11 +0800
From: Cong Wang <amwang@...hat.com>
To: kbuild test robot <fengguang.wu@...el.com>
Cc: netdev@...r.kernel.org
Subject: Re: [net-next:master 195/198] net/bridge/br_mdb.c:79:35: sparse:
incompatible types in comparison expression (different address spaces)
On Mon, 2012-12-10 at 20:36 +0800, Cong Wang wrote:
> On Sun, 2012-12-09 at 10:54 +0800, kbuild test robot wrote:
> > tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
> > head: 9ecb9aabaf634677c77af467f4e3028b09d7bcda
> > commit: ee07c6e7a6f8a25c18f0a6b18152fbd7499245f6 [195/198] bridge: export multicast database via netlink
> >
> >
> > sparse warnings:
> >
> > + net/bridge/br_mdb.c:79:35: sparse: incompatible types in comparison expression (different address spaces)
>
> Hi, Fengguang,
>
> I am not sure if I understand this warning correctly. Does the following
> patch fix it?
>
Hmm, no, probably this one:
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c
index 2528328..cd6735c 100644
--- a/net/bridge/br_mdb.c
+++ b/net/bridge/br_mdb.c
@@ -63,7 +63,7 @@ static int br_mdb_fill_info(struct sk_buff *skb,
struct netlink_callback *cb,
for (i = 0; i < mdb->max; i++) {
struct hlist_node *h;
struct net_bridge_mdb_entry *mp;
- struct net_bridge_port_group *p, **pp;
+ struct net_bridge_port_group __rcu *p, **pp;
struct net_bridge_port *port;
hlist_for_each_entry_rcu(mp, h, &mdb->mhash[i],
hlist[mdb->ver]) {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists