[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130730160245.4b7b84a1@nehalam.linuxnetplumber.net>
Date: Tue, 30 Jul 2013 16:02:45 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Pravin Shelar <pshelar@...ira.com>
Cc: David Miller <davem@...emloft.net>,
Thomas Richter <tmricht@...ux.vnet.ibm.com>,
Mike Rapoport <mike.rapoport@...ellosystems.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] vxlan: fix rcu related warnings
On Tue, 30 Jul 2013 15:17:21 -0700
Pravin Shelar <pshelar@...ira.com> wrote:
> On Tue, Jul 30, 2013 at 1:18 PM, Stephen Hemminger
> <stephen@...workplumber.org> wrote:
> > Vxlan remote list is protected by RCU but since first_remote
> > returns a bare pointer, sparse complains.
> > Split out the rcu and non-rcu access to the list.
> >
> > Ok to replace list_for_or_null with just list_entry_rcu because
> > remotes list must be non-empty.
> >
> I am still getting following sparse waning.
>
> CHECK drivers/net/vxlan.c
> drivers/net/vxlan.c:181:16: warning: incorrect type in return
> expression (different address spaces)
> drivers/net/vxlan.c:181:16: expected struct vxlan_rdst [noderef] <asn:4>*
> drivers/net/vxlan.c:181:16: got struct vxlan_rdst *<noident>
> drivers/net/vxlan.c:748:59: warning: incorrect type in initializer
> (different address spaces)
> drivers/net/vxlan.c:748:59: expected struct vxlan_rdst *rdst
> drivers/net/vxlan.c:748:59: got struct vxlan_rdst [noderef] <asn:4>*
> drivers/net/vxlan.c:181:16: warning: incorrect type in return
> expression (different address spaces)
> drivers/net/vxlan.c:181:16: expected struct vxlan_rdst [noderef] <asn:4>*
> drivers/net/vxlan.c:181:16: got struct vxlan_rdst *<noident>
> drivers/net/vxlan.c:996:42: warning: dereference of noderef expression
> --
> 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
Which version of sparse? I don't see this with latest version.
--
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