1 From: Antonio Quartulli <a@unstable.cc>
2 Date: Sat, 12 May 2018 03:02:44 +0800
3 Subject: [PATCH] batman-adv: don't implement skb_postpush_rcsum() for linux >=4.4.47
5 skb_postpush_rcsum() has been implemented in 4.4.47 therefore
6 our compat code has to be changed to prevent this function to
7 be implemented when using those kernels.
9 Signed-off-by: Antonio Quartulli <a@unstable.cc>
10 Signed-off-by: Sven Eckelmann <sven@narfation.org>
12 Origin: upstream, https://git.open-mesh.org/batman-adv.git/commit/b4693d107e0869bf11956fd2d3be4fd0a8671b46
14 compat-include/linux/skbuff.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/compat-include/linux/skbuff.h b/compat-include/linux/skbuff.h
18 index 6f73946496ac15f2fdb856357f16e4e2d8a6e6cd..371bb561eecaf605a5c96f9417546f6bb817724d 100644
19 --- a/compat-include/linux/skbuff.h
20 +++ b/compat-include/linux/skbuff.h
21 @@ -77,7 +77,7 @@ struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,
23 #endif /* < KERNEL_VERSION(4, 2, 0) */
25 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
26 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 47)
28 static inline void skb_postpush_rcsum(struct sk_buff *skb,
29 const void *start, unsigned int len)