The following commit has been merged in the master branch: commit 40756dd4ba0d0f7120e67483010149e87ea956a1 Author: Sven Eckelmann sven.eckelmann@gmx.de Date: Mon Oct 25 21:49:18 2010 +0000
batman-adv: Cleanup compat.h
Following functions/defines were declared more than once: * skb_mac_header
Following functions/defines weren't used anymore: * skb_clone_writable * dev_get_stats
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de
diff --git a/compat.h b/compat.h index 5c02b44..da474e4 100644 --- a/compat.h +++ b/compat.h @@ -46,9 +46,6 @@ #define skb_mac_header(_skb) \ ((_skb)->mac.raw)
-#define skb_mac_header(_skb) \ - ((_skb)->mac.raw) - #include <linux/etherdevice.h> static inline __be16 bat_eth_type_trans(struct sk_buff *skb, struct net_device *dev) @@ -64,12 +61,6 @@ static inline __be16 bat_eth_type_trans(struct sk_buff *skb,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
-static inline int skb_clone_writable(struct sk_buff *skb, unsigned int len) -{ - /* skb->hdr_len not available, just "not writable" to enforce a copy */ - return 0; -} - static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) { return skb_cow(skb, headroom); @@ -268,14 +259,6 @@ int bat_sprintf(char *buf, const char *fmt, ...); int bat_snprintf(char *buf, size_t size, const char *fmt, ...); #define snprintf bat_snprintf
-static inline struct net_device_stats *dev_get_stats(struct net_device *dev) -{ - if (dev->get_stats) - return dev->get_stats(dev); - else - return NULL; -} - #endif /* < KERNEL_VERSION(2, 6, 29) */
#endif /* _NET_BATMAN_ADV_COMPAT_H_ */