[PATCH 35/38] backports: don't backport some SKB functions for RHEL 7.6

Johannes Berg <[email protected]> Tue, 11 Oct 2022 23:04:43 +0200
Newsgroups org.kernel.vger.backports
Message-ID <20221011230356.7f90a91853fe.Ife1d5e9e20f120283490bf771f7c71d111c4fef3@changeid>
From: Johannes Berg <[email protected]>

For RHEL 7.6 these were backported, so don't do it again.

Signed-off-by: Johannes Berg <[email protected]>
---
 backport/backport-include/linux/skbuff.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
index 376dd5942a34..419629e5d962 100644
--- a/backport/backport-include/linux/skbuff.h
+++ b/backport/backport-include/linux/skbuff.h
@@ -21,7 +21,8 @@ static inline void skb_postpush_rcsum(struct sk_buff *skb,
 }
 #endif /* LINUX_VERSION_IS_LESS(4,4,10) */
 
-#if LINUX_VERSION_IS_LESS(4,13,0)
+#if LINUX_VERSION_IS_LESS(4,13,0) && \
+	RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,6)
 static inline void *backport_skb_put(struct sk_buff *skb, unsigned int len)
 {
 	return skb_put(skb, len);
-- 
2.37.3

--
To unsubscribe from this list: send the line "unsubscribe backports" in