diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2003-10-16 11:03:12 -0700 |
|---|---|---|
| committer | Stephen Hemminger <shemminger@osdl.org> | 2003-10-16 11:03:12 -0700 |
| commit | 2608bab9bb75d275dbc7fd4012e3c2069a364697 (patch) | |
| tree | a979fd20f3908ae1582ad9cea032e5a95c4c30b6 /include/linux | |
| parent | eb1a40d95007f99918694e68ccefe42b46b1892e (diff) | |
[NET]: Mark init_etherdev() as deprecated.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/etherdevice.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index d3b49237ed50..9cba9322d850 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -38,7 +38,13 @@ extern int eth_header_cache(struct neighbour *neigh, struct hh_cache *hh); extern int eth_header_parse(struct sk_buff *skb, unsigned char *haddr); -extern struct net_device *init_etherdev(struct net_device *dev, int sizeof_priv); +extern struct net_device *__init_etherdev(struct net_device *dev, int sizeof_priv); +static inline __deprecated struct net_device *init_etherdev(struct net_device *dev, + int sizeof_priv) +{ + return __init_etherdev(dev, sizeof_priv); +} + extern struct net_device *alloc_etherdev(int sizeof_priv); static inline void eth_copy_and_sum (struct sk_buff *dest, unsigned char *src, int len, int base) { |
