mm-page_poison-always-declare-__kernel_map_pages-function.patch removed from -mm tree
The quilt patch titled
Subject: mm: page_poison: always declare __kernel_map_pages() function
has been removed from the -mm tree. Its filename was
mm-page_poison-always-declare-__kernel_map_pages-function.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: mm: page_poison: always declare __kernel_map_pages() function
Date: Wed, 17 May 2023 15:10:50 +0200
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.
---
include/linux/mm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-page_poison-always-declare-__kernel_map_pages-function +1 -2
@@ -3453,13 +3453,12 @@ static inline bool debug_pagealloc_enablreturn 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 ())
_
Patches currently in -mm which might be from [email protected] are
mm-sparse-mark-populate_section_memmap-static.patch lib-devmem_is_allowed-include-linux-ioh.patch locking-add-lockevent_read-prototype.patch panic-hide-unused-global-functions.patch panic-make-function-declarations-visible.patch kunit-include-debugfs-header-file.patch init-consolidate-prototypes-in-linux-inith.patch init-move-cifs_root_data-prototype-into-linux-mounth.patch thread_info-move-function-declarations-to-linux-thread_infoh.patch time_namespace-always-provide-arch_get_vdso_data-prototype-for-vdso.patch kcov-add-prototypes-for-helper-functions.patch decompressor-provide-missing-prototypes.patch syscalls-add-sys_ni_posix_timers-prototype.patch