From: Paul E. McKenney Date: Mon, 3 May 2010 01:10:06 +0000 (-0700) Subject: net: Make accesses to ->br_port safe for sparse RCU X-Git-Tag: v2.6.36-rc1~533^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81bdf5bd7349bd4523538cbd7878f334bc2bfe14;p=pandora-kernel.git net: Make accesses to ->br_port safe for sparse RCU The new versions of the rcu_dereference() APIs requires that any pointers passed to one of these APIs be fully defined. The ->br_port field in struct net_device points to a struct net_bridge_port, which is an incomplete type. This commit therefore changes ->br_port to be a void*, and introduces a br_port() helper function to convert the type to struct net_bridge_port, and applies this new helper function where required. Signed-off-by: Arnd Bergmann Signed-off-by: Paul E. McKenney Cc: David Miller Cc: Stephen Hemminger Cc: Eric Dumazet --- Reading git-diff-tree failed