From: Greg Kroah-Hartman Date: Sat, 17 Jan 2026 15:28:58 +0000 (+0100) Subject: 6.1-stable patches X-Git-Tag: v6.6.121~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a96410cb39610027311952f6dfc3ac7bfb5aafa;p=thirdparty%2Fkernel%2Fstable-queue.git 6.1-stable patches added patches: mm-page_poison-always-declare-__kernel_map_pages-function.patch --- diff --git a/queue-6.1/mm-page_poison-always-declare-__kernel_map_pages-function.patch b/queue-6.1/mm-page_poison-always-declare-__kernel_map_pages-function.patch new file mode 100644 index 0000000000..6329a4f3b1 --- /dev/null +++ b/queue-6.1/mm-page_poison-always-declare-__kernel_map_pages-function.patch @@ -0,0 +1,70 @@ +From 8f14a96386b2676a1ccdd9d2f1732fbd7248fa98 Mon Sep 17 00:00:00 2001 +From: Arnd Bergmann +Date: Wed, 17 May 2023 15:10:50 +0200 +Subject: mm: page_poison: always declare __kernel_map_pages() function + +From: Arnd Bergmann + +commit 8f14a96386b2676a1ccdd9d2f1732fbd7248fa98 upstream. + +The __kernel_map_pages() function is mainly used for +CONFIG_DEBUG_PAGEALLOC, but has a number of architecture specific +definitions that may also be used in other configurations, as well as a +global fallback definition for architectures that do not support +DEBUG_PAGEALLOC. + +When the option is disabled, any definitions without the prototype cause a +warning: + +mm/page_poison.c:102:6: error: no previous prototype for '__kernel_map_pages' [-Werror=missing-prototypes] + +The function is a trivial nop here, so just declare it anyway +to avoid the warning. + +Link: https://lkml.kernel.org/r/20230517131102.934196-3-arnd@kernel.org +Signed-off-by: Arnd Bergmann +Cc: Boqun Feng +Cc: Catalin Marinas +Cc: Christoph Lameter +Cc: Dennis Zhou +Cc: Eric Paris +Cc: Heiko Carstens +Cc: Helge Deller +Cc: Ingo Molnar +Cc: Michael Ellerman +Cc: Michal Simek +Cc: Palmer Dabbelt +Cc: Paul Moore +Cc: Pavel Machek +Cc: Peter Zijlstra +Cc: Rafael J. Wysocki +Cc: Russell King +Cc: Tejun Heo +Cc: Thomas Bogendoerfer +Cc: Thomas Gleixner +Cc: Waiman Long +Cc: Will Deacon +Signed-off-by: Andrew Morton +Cc: Salvatore Bonaccorso +Signed-off-by: Greg Kroah-Hartman +--- + include/linux/mm.h | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/include/linux/mm.h ++++ b/include/linux/mm.h +@@ -3318,13 +3318,12 @@ static inline bool debug_pagealloc_enabl + return static_branch_unlikely(&_debug_pagealloc_enabled); + } + +-#ifdef CONFIG_DEBUG_PAGEALLOC + /* + * To support DEBUG_PAGEALLOC architecture must ensure that + * __kernel_map_pages() never fails + */ + extern void __kernel_map_pages(struct page *page, int numpages, int enable); +- ++#ifdef CONFIG_DEBUG_PAGEALLOC + static inline void debug_pagealloc_map_pages(struct page *page, int numpages) + { + if (debug_pagealloc_enabled_static()) diff --git a/queue-6.1/series b/queue-6.1/series index 36058388d1..e964d51660 100644 --- a/queue-6.1/series +++ b/queue-6.1/series @@ -1,3 +1,4 @@ +mm-page_poison-always-declare-__kernel_map_pages-function.patch atm-fix-dma_free_coherent-size.patch net-3com-3c59x-fix-possible-null-dereference-in-vortex_probe1.patch btrfs-always-detect-conflicting-inodes-when-logging-inode-refs.patch