batman-adv: don't implement skb_postpush_rcsum() for linux >=4.4.47
PATCH 1/1 batman-adv: don't implement skb_postpush_rcsum() for linux >=4.4.47
skb_postpush_rcsum() has been implemented in 4.4.47 therefore our compat code has to be changed to prevent this function to be implemented when using those kernels.
Signed-off-by Antonio Quartulli <[email protected]>
--- compat-include/linux/skbuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
compat-include/linux/skbuff.h +1 -1
@@ -77,7 +77,7 @@ struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,#endif /* < KERNEL_VERSION(4, 2, 0) */ -#if LINUX_VERSION_CODE <KERNEL_VERSION (4 ,5 ,0 ) +#if LINUX_VERSION_CODE <KERNEL_VERSION (4 ,4 ,47 )static inline void skb_postpush_rcsum (struct sk_buff *skb,const void *start,unsigned int len)
Signature · 1 line
2.17.0
Sven Eckelmann
AppliedQuoted 8 lines · On Freitag, 11. Mai 2018 21:02:44 CEST Antonio Quartulli wrote:
skb_postpush_rcsum()has been implemented in 4.4.47 therefore our compat code has to be changed to prevent this function to be implemented when using those kernels.Signed-off-by Antonio Quartulli <[email protected]>--- compat-include/linux/skbuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied in b4693d107e08 [1].
Thanks,
Sven
[1] https://git.open-mesh.org/batman-adv.git/commit/b4693d107e0869bf11956fd2d3be4fd0a8671b46