[openwrt/openwrt] mac80211: backport napi_build_skb for 5.10
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 29 01:08:41 PST 2023
nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/908397f6d2d167c02ee579b51c79ef03cdcdae9c
commit 908397f6d2d167c02ee579b51c79ef03cdcdae9c
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Jan 27 11:35:41 2023 +0100
mac80211: backport napi_build_skb for 5.10
It is needed for an upcoming mt76 update
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../mac80211/patches/build/110-backport_napi_build_skb.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
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
index 0000000000..e2f6be5633
--- /dev/null
+++ b/package/kernel/mac80211/patches/build/110-backport_napi_build_skb.patch
@@ -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 */
More information about the lede-commits
mailing list