From: Hauke Mehrtens Date: Sat, 1 Oct 2011 10:32:54 +0000 (+0200) Subject: compat: add skb_tx_timestamp() and skb_defer_rx_timestamp() X-Git-Tag: compat-2011-11-08~6 X-Git-Url: https://git.openfabrics.org/?p=~tnikolova%2Fcompat%2F.git;a=commitdiff_plain;h=2239769c556d3f4444a47889be0d60435a91c3b5 compat: add skb_tx_timestamp() and skb_defer_rx_timestamp() Just add an empty implementation of these functions to do the same as when timestamping is deactivated. Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h index 7bb2bb8..f4d6f80 100644 --- a/include/linux/compat-2.6.36.h +++ b/include/linux/compat-2.6.36.h @@ -125,6 +125,15 @@ static inline void tty_unlock(void) __releases(kernel_lock) static inline void pm_wakeup_event(struct device *dev, unsigned int msec) {} +static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) +{ + return false; +} + +static inline void skb_tx_timestamp(struct sk_buff *skb) +{ +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */ #endif /* LINUX_26_36_COMPAT_H */