[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20111214.024719.723458248077070552.davem@davemloft.net>
Date: Wed, 14 Dec 2011 02:47:19 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: kaber@...sh.net, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, jpirko@...hat.com
Subject: Re: [patch] vlan: add rtnl_dereference() annotations
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Wed, 14 Dec 2011 09:29:43 +0300
> The original code generates a Sparse warning:
> net/8021q/vlan_core.c:336:9:
> error: incompatible types in comparison expression (different address spaces)
>
> It's ok to dereference __rcu pointers here because we are holding the
> RTNL lock. I've added some calls to rtnl_dereference() to silence the
> warning.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied.
--
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