arm/pgtable: Remove duplicate included header file
PATCH RESEND 1/1 arm/pgtable: Remove duplicate included header file
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
Reviewed-by Mike Rapoport (Microsoft) <[email protected]>
Signed-off-by Thorsten Blum <[email protected]>
--- arch/arm/include/asm/pgtable.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/include/asm/pgtable.h +2 -3
@@ -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>
Signature · 1 line
2.47.1