path: root/arch
diff options
authorMike Rapoport <>2020-06-04 16:46:15 -0700
committerLinus Torvalds <>2020-06-04 19:06:20 -0700
commitf426f4edf46c1a188edc33c25c13728857da3152 (patch)
treec0ea65e2c944619b87d194b6ac1aaf2564e3c688 /arch
parentc571686a92ffd30d9f6092ce3f697e125bf96fd5 (diff)
h8300: remove usage of __ARCH_USE_5LEVEL_HACK
Patch series "mm: remove __ARCH_HAS_5LEVEL_HACK", v4. These patches convert several architectures to use page table folding and remove __ARCH_HAS_5LEVEL_HACK along with include/asm-generic/5level-fixup.h and include/asm-generic/pgtable-nop4d-hack.h. With that we'll have a single and consistent way of dealing with page table folding instead of a mix of three existing options. The changes are mostly about mechanical replacement of pgd accessors with p4d ones and the addition of higher levels to page table traversals. This patch (of 14): h8300 is a nommu architecture and does not require fixup for upper layers of the page tables because it is already handled by the generic nommu implementation. Remove definition of __ARCH_USE_5LEVEL_HACK in arch/h8300/include/asm/pgtable.h Signed-off-by: Mike Rapoport <> Signed-off-by: Andrew Morton <> Cc: Arnd Bergmann <> Cc: Benjamin Herrenschmidt <> Cc: Brian Cain <> Cc: Catalin Marinas <> Cc: Christophe Leroy <> Cc: Fenghua Yu <> Cc: Geert Uytterhoeven <> Cc: Guan Xuetao <> Cc: James Morse <> Cc: Jonas Bonn <> Cc: Julien Thierry <> Cc: Ley Foon Tan <> Cc: Marc Zyngier <> Cc: Michael Ellerman <> Cc: Paul Mackerras <> Cc: Rich Felker <> Cc: Russell King <> Cc: Stafford Horne <> [openrisc] Cc: Stefan Kristiansson <> Cc: Suzuki K Poulose <> Cc: Tony Luck <> Cc: Will Deacon <> Cc: Yoshinori Sato <> Cc: Joerg Roedel <> Link: Link: Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch')
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/h8300/include/asm/pgtable.h b/arch/h8300/include/asm/pgtable.h
index 4d00152fab58..f00828720dc4 100644
--- a/arch/h8300/include/asm/pgtable.h
+++ b/arch/h8300/include/asm/pgtable.h
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _H8300_PGTABLE_H
#define _H8300_PGTABLE_H
#include <asm-generic/pgtable-nopud.h>
#include <asm-generic/pgtable.h>
extern void paging_init(void);