Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt76: fixes for memory leak and kernels 6.7 and above #17662

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
mt76: fix kernel 6.7 compatibility
The PP_FLAG_PAGE_FRAG constant was removed in kernel 6.7,
so we are removing it from code for kernels 6.7 and above.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
  • Loading branch information
namiltd committed Jan 21, 2025
commit 40fec37d3abd8b8fd6ab95331b5a98d376bef71b
24 changes: 24 additions & 0 deletions package/kernel/mt76/patches/0001-fix-build-for-linux-6.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Date: Sun, 19 Jan 2025 12:35:47 +0100
Subject: [PATCH] mt76: fix kernel 6.7 compatibility

The PP_FLAG_PAGE_FRAG constant was removed in kernel 6.7,
so we are removing it from code for kernels 6.7 and above.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
---

--- a/mac80211.c
+++ b/mac80211.c
@@ -613,7 +613,11 @@ int mt76_create_page_pool(struct mt76_de
{
struct page_pool_params pp_params = {
.order = 0,
+#if LINUX_VERSION_IS_LESS(6,7,0)
.flags = PP_FLAG_PAGE_FRAG,
+#else
+ .flags = 0,
+#endif
.nid = NUMA_NO_NODE,
.dev = dev->dma_dev,
};
namiltd marked this conversation as resolved.
Show resolved Hide resolved