Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT
@ 2024-10-14  3:03 Gavin Shan
  2024-10-14  3:44 ` Anshuman Khandual
  2024-10-16 16:30 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Gavin Shan @ 2024-10-14  3:03 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: linux-kernel, catalin.marinas, will, ardb, anshuman.khandual,
	gshan, shan.gavin

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 <gshan@redhat.com>
---
 arch/arm64/include/asm/kernel-pgtable.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h
index bf05a77873a4..fd5a08450b12 100644
--- a/arch/arm64/include/asm/kernel-pgtable.h
+++ b/arch/arm64/include/asm/kernel-pgtable.h
@@ -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)
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT
  2024-10-14  3:03 [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT Gavin Shan
@ 2024-10-14  3:44 ` Anshuman Khandual
  2024-10-16 16:30 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Anshuman Khandual @ 2024-10-14  3:44 UTC (permalink / raw)
  To: Gavin Shan, linux-arm-kernel
  Cc: linux-kernel, catalin.marinas, will, ardb, shan.gavin



On 10/14/24 08:33, Gavin Shan wrote:
> 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 <gshan@redhat.com>

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>

> ---
>  arch/arm64/include/asm/kernel-pgtable.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h
> index bf05a77873a4..fd5a08450b12 100644
> --- a/arch/arm64/include/asm/kernel-pgtable.h
> +++ b/arch/arm64/include/asm/kernel-pgtable.h
> @@ -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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT
  2024-10-14  3:03 [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT Gavin Shan
  2024-10-14  3:44 ` Anshuman Khandual
@ 2024-10-16 16:30 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2024-10-16 16:30 UTC (permalink / raw)
  To: linux-arm-kernel, Gavin Shan
  Cc: Will Deacon, linux-kernel, ardb, anshuman.khandual, shan.gavin

On Mon, 14 Oct 2024 13:03:41 +1000, Gavin Shan wrote:
> There is no users of SWAPPER_TABLE_SHIFT after commit 84b04d3e6bdb
> ("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

-- 
Catalin



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-16 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14  3:03 [PATCH] arm64: head: Drop SWAPPER_TABLE_SHIFT Gavin Shan
2024-10-14  3:44 ` Anshuman Khandual
2024-10-16 16:30 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox