path: root/arch/Kconfig
diff options
authorMike Rapoport <>2020-12-14 19:10:30 -0800
committerLinus Torvalds <>2020-12-15 12:13:43 -0800
commit5d6ad668f31625c6aa9ed8dc3bdb29561d2b1144 (patch)
treec2d73b8eee5a024cb9e6acb41f122e93b0cd2b58 /arch/Kconfig
parent2abf962a8d42b32f5ffeb827826290b799c85f86 (diff)
arch, mm: restore dependency of __kernel_map_pages() on DEBUG_PAGEALLOC
The design of DEBUG_PAGEALLOC presumes that __kernel_map_pages() must never fail. With this assumption is wouldn't be safe to allow general usage of this function. Moreover, some architectures that implement __kernel_map_pages() have this function guarded by #ifdef DEBUG_PAGEALLOC and some refuse to map/unmap pages when page allocation debugging is disabled at runtime. As all the users of __kernel_map_pages() were converted to use debug_pagealloc_map_pages() it is safe to make it available only when DEBUG_PAGEALLOC is set. Link: Signed-off-by: Mike Rapoport <> Acked-by: David Hildenbrand <> Acked-by: Kirill A. Shutemov <> Cc: Albert Ou <> Cc: Andy Lutomirski <> Cc: Benjamin Herrenschmidt <> Cc: Borislav Petkov <> Cc: Catalin Marinas <> Cc: Christian Borntraeger <> Cc: Christoph Lameter <> Cc: Dave Hansen <> Cc: David Rientjes <> Cc: "David S. Miller" <> Cc: "Edgecombe, Rick P" <> Cc: Heiko Carstens <> Cc: "H. Peter Anvin" <> Cc: Ingo Molnar <> Cc: Joonsoo Kim <> Cc: Len Brown <> Cc: Michael Ellerman <> Cc: Palmer Dabbelt <> Cc: Paul Mackerras <> Cc: Paul Walmsley <> Cc: Pavel Machek <> Cc: Pekka Enberg <> Cc: Peter Zijlstra <> Cc: Rafael J. Wysocki <> Cc: "Rafael J. Wysocki" <> Cc: Thomas Gleixner <> Cc: Vasily Gorbik <> Cc: Vlastimil Babka <> Cc: Will Deacon <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/Kconfig')
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 8d5efff59cd8..cd4172a80123 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -1047,6 +1047,9 @@ config ARCH_WANT_LD_ORPHAN_WARN
+ bool
source "kernel/gcov/Kconfig"
source "scripts/gcc-plugins/Kconfig"