mac80211: backport napi_build_skb for 5.10
authorFelix Fietkau <nbd@nbd.name>
Fri, 27 Jan 2023 10:35:41 +0000 (11:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 29 Jan 2023 09:08:21 +0000 (10:08 +0100)
It is needed for an upcoming mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/patches/build/110-backport_napi_build_skb.patch [new file with mode: 0644]

diff --git a/package/kernel/mac80211/patches/build/110-backport_napi_build_skb.patch b/package/kernel/mac80211/patches/build/110-backport_napi_build_skb.patch
new file mode 100644 (file)
index 0000000..e2f6be5
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/backport-include/linux/skbuff.h
++++ b/backport-include/linux/skbuff.h
+@@ -140,4 +140,8 @@ static inline u64 skb_get_kcov_handle(st
+ }
+ #endif
++#if LINUX_VERSION_IS_LESS(5,11,0)
++#define napi_build_skb build_skb
++#endif
++
+ #endif /* __BACKPORT_SKBUFF_H */