arm64: head: Drop SWAPPER_TABLE_SHIFT
PATCH 1/1 arm64: head: Drop SWAPPER_TABLE_SHIFT
There is no users of SWAPPER_TABLE_SHIFT after commit 84b04d3e6bdb ("arm64: kernel: Create initial ID map from C code"). Just drop it.
Signed-off-by Gavin Shan <[email protected]>
--- arch/arm64/include/asm/kernel-pgtable.h | 1 - 1 file changed, 1 deletion(-)
arch/arm64/include/asm/kernel-pgtable.h +0 -1
@@ -26,7 +26,6 @@#define SWAPPER_SKIP_LEVEL 0#endif #define SWAPPER_BLOCK_SIZE (UL(1) << SWAPPER_BLOCK_SHIFT) -#define SWAPPER_TABLE_SHIFT (SWAPPER_BLOCK_SHIFT + PAGE_SHIFT - 3)#define SWAPPER_PGTABLE_LEVELS (CONFIG_PGTABLE_LEVELS - SWAPPER_SKIP_LEVEL)#define INIT_IDMAP_PGTABLE_LEVELS (IDMAP_LEVELS - SWAPPER_SKIP_LEVEL)
Signature · 1 line
2.45.2
Quoted 4 lines · Gavin Shan
There is no users of
SWAPPER_TABLE_SHIFTafter commit84b04d3e6bdb("arm64: kernel: Create initial ID map from C code"). Just drop it.Signed-off-by Gavin Shan <[email protected]>
Reviewed-by Anshuman Khandual <[email protected]>
Quoted 16 lines
--- arch/arm64/include/asm/kernel-pgtable.h | 1 - 1 file changed, 1 deletion(-)arch/arm64/include/asm/kernel-pgtable.h +0
-1@@ -26,7 +26,6 @@#define SWAPPER_SKIP_LEVEL 0#endif #define SWAPPER_BLOCK_SIZE (UL(1) << SWAPPER_BLOCK_SHIFT) -#define SWAPPER_TABLE_SHIFT (SWAPPER_BLOCK_SHIFT + PAGE_SHIFT - 3)#define SWAPPER_PGTABLE_LEVELS (CONFIG_PGTABLE_LEVELS - SWAPPER_SKIP_LEVEL)#define INIT_IDMAP_PGTABLE_LEVELS (IDMAP_LEVELS - SWAPPER_SKIP_LEVEL)
Quoted 4 lines · Gavin Shan
There is no users of
SWAPPER_TABLE_SHIFTafter commit84b04d3e6bdb("arm64: kernel: Create initial ID map from C code"). Just drop it.
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: head: Drop SWAPPER_TABLE_SHIFT
https://git.kernel.org/arm64/c/0f612c6eb13a
Signature · 1 line
Catalin