From: Weijie Gao Date: Fri, 1 Mar 2024 07:49:13 +0000 (+0800) Subject: mt76: fix build failure on linux kernel 6.6 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=504cf50eea5a8f56b114cd985e7dc7af6cf64bfa;p=openwrt%2Fstaging%2Fthess.git mt76: fix build failure on linux kernel 6.6 A commit introduced in kernel 6.6 has splitted page_pool.h into several headers. Thus the included header must be modified for a successful build. Ref: a9ca9f9ceff3 (page_pool: split types and declarations from page_pool.h) Signed-off-by: Weijie Gao --- diff --git a/package/kernel/mt76/patches/100-fix-build-on-linux-kernel-6.6.patch b/package/kernel/mt76/patches/100-fix-build-on-linux-kernel-6.6.patch new file mode 100644 index 0000000000..4fdba0c472 --- /dev/null +++ b/package/kernel/mt76/patches/100-fix-build-on-linux-kernel-6.6.patch @@ -0,0 +1,24 @@ +--- a/mac80211.c ++++ b/mac80211.c +@@ -4,7 +4,9 @@ + */ + #include + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0) + #include ++#endif + #include "mt76.h" + + #define CHAN2G(_idx, _freq) { \ +--- a/mt76.h ++++ b/mt76.h +@@ -13,6 +13,9 @@ + #include + #include + #include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0) ++#include ++#endif + #include + #include + #include "util.h"