* [PATCH] arm/pgtable: Remove duplicate included header file
@ 2024-12-02 15:48 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2024-12-02 15:48 UTC (permalink / raw)
To: Russell King, Palmer Dabbelt, Mike Rapoport (IBM), Andrew Morton,
David Hildenbrand, Alexandre Ghiti
Cc: Thorsten Blum, linux-arm-kernel, linux-kernel
The header file asm-generic/pgtable-nopud.h is included whether
CONFIG_MMU is defined or not.
Include it only once before the #ifndef/#else/#endif preprocessor
directives and remove the following make includecheck warning:
asm-generic/pgtable-nopud.h is included more than once
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/arm/include/asm/pgtable.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index be91e376df79..6b986ef6042f 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -19,14 +19,13 @@ extern struct page *empty_zero_page;
#define ZERO_PAGE(vaddr) (empty_zero_page)
#endif
-#ifndef CONFIG_MMU
-
#include <asm-generic/pgtable-nopud.h>
+
+#ifndef CONFIG_MMU
#include <asm/pgtable-nommu.h>
#else
-#include <asm-generic/pgtable-nopud.h>
#include <asm/page.h>
#include <asm/pgtable-hwdef.h>
--
2.47.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-02 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 15:48 [PATCH] arm/pgtable: Remove duplicate included header file Thorsten Blum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.