Commit 1567ca7e authored by David S. Miller's avatar David S. Miller
Browse files

[NET]: Protect device namespace inlines with CONFIG_NET

Include sites should not be bothered by whether
CONFIG_NET is set or not when trying to include
benign files like linux/etherdevice.h et al.

From a report by Stephen Rothwell.

Signed-off-by: default avatarDavid S. Miller <>
parent 0736ffc0
......@@ -741,6 +741,7 @@ struct net_device
#define NETDEV_ALIGN 32
* Net namespace inlines
......@@ -761,6 +762,7 @@ void dev_net_set(struct net_device *dev, struct net *net)
dev->nd_net = net;
* netdev_priv - access network device private data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment