projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0736ffc
)
[NET]: Protect device namespace inlines with CONFIG_NET
author
David S. Miller
<davem@davemloft.net>
Fri, 28 Mar 2008 22:53:11 +0000
(15:53 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 28 Mar 2008 22:53:11 +0000
(15:53 -0700)
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: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
patch
|
blob
|
history
diff --git
a/include/linux/netdevice.h
b/include/linux/netdevice.h
index 3b54f8a2c055240be8b4dc0c4d3abc5fffd5f8af..8576ca928dae27fd73cc6ee80c7ab5ea854a1543 100644
(file)
--- a/
include/linux/netdevice.h
+++ b/
include/linux/netdevice.h
@@
-741,6
+741,7
@@
struct net_device
#define NETDEV_ALIGN 32
#define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1)
+#ifdef CONFIG_NET
/*
* Net namespace inlines
*/
@@
-761,6
+762,7
@@
void dev_net_set(struct net_device *dev, struct net *net)
dev->nd_net = net;
#endif
}
+#endif
/**
* netdev_priv - access network device private data