Message ID | 20181002175107.16336-5-johannes@sipsolutions.net (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [1/6] backports: rename magic functions for netlink parsing | expand |
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h index 61133c4277cc..44b2a5de0478 100644 --- a/backport/backport-include/linux/skbuff.h +++ b/backport/backport-include/linux/skbuff.h @@ -382,4 +382,11 @@ static inline void skb_put_u8(struct sk_buff *skb, u8 val) } #endif +#if LINUX_VERSION_IS_LESS(4,20,0) +static inline struct sk_buff *__skb_peek(const struct sk_buff_head *list_) +{ + return list_->next; +} +#endif + #endif /* __BACKPORT_SKBUFF_H */