diff mbox series

[1/4] arm64: mm: remove unneeded SWAPPER_INIT_MAP_SIZE

Message ID 20210518101405.1048860-2-aisheng.dong@nxp.com (mailing list archive)
State New, archived
Headers show
Series arm64: mm: a few small cleanups | expand

Commit Message

Aisheng Dong May 18, 2021, 10:14 a.m. UTC
Since commit cdef5f6e9e0e ("arm64: mm: allocate pagetables anywhere"),
arm64 kernel supports allocate pagetables anywhere and this macro
definition is not used anymore.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
---
 arch/arm64/include/asm/kernel-pgtable.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Mark Rutland May 18, 2021, 12:13 p.m. UTC | #1
On Tue, May 18, 2021 at 06:14:02PM +0800, Dong Aisheng wrote:
> Since commit cdef5f6e9e0e ("arm64: mm: allocate pagetables anywhere"),
> arm64 kernel supports allocate pagetables anywhere and this macro
> definition is not used anymore.
> 
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.

> ---
>  arch/arm64/include/asm/kernel-pgtable.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h
> index d44df9d62fc9..e2f103cce7c1 100644
> --- a/arch/arm64/include/asm/kernel-pgtable.h
> +++ b/arch/arm64/include/asm/kernel-pgtable.h
> @@ -100,9 +100,6 @@
>  #define SWAPPER_TABLE_SHIFT	PMD_SHIFT
>  #endif
>  
> -/* The size of the initial kernel direct mapping */
> -#define SWAPPER_INIT_MAP_SIZE	(_AC(1, UL) << SWAPPER_TABLE_SHIFT)
> -
>  /*
>   * Initial memory map attributes.
>   */
> -- 
> 2.25.1
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Catalin Marinas June 15, 2021, 1:31 p.m. UTC | #2
On Tue, May 18, 2021 at 06:14:02PM +0800, Dong Aisheng wrote:
> Since commit cdef5f6e9e0e ("arm64: mm: allocate pagetables anywhere"),
> arm64 kernel supports allocate pagetables anywhere and this macro
> definition is not used anymore.
> 
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
> ---
>  arch/arm64/include/asm/kernel-pgtable.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h
> index d44df9d62fc9..e2f103cce7c1 100644
> --- a/arch/arm64/include/asm/kernel-pgtable.h
> +++ b/arch/arm64/include/asm/kernel-pgtable.h
> @@ -100,9 +100,6 @@
>  #define SWAPPER_TABLE_SHIFT	PMD_SHIFT
>  #endif
>  
> -/* The size of the initial kernel direct mapping */
> -#define SWAPPER_INIT_MAP_SIZE	(_AC(1, UL) << SWAPPER_TABLE_SHIFT)

It looks like Will merged Anshuman's equivalent
(https://lore.kernel.org/r/1623665411-20055-1-git-send-email-anshuman.khandual@arm.com)
as he wasn't cc'ed on this series.
diff mbox series

Patch

diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h
index d44df9d62fc9..e2f103cce7c1 100644
--- a/arch/arm64/include/asm/kernel-pgtable.h
+++ b/arch/arm64/include/asm/kernel-pgtable.h
@@ -100,9 +100,6 @@ 
 #define SWAPPER_TABLE_SHIFT	PMD_SHIFT
 #endif
 
-/* The size of the initial kernel direct mapping */
-#define SWAPPER_INIT_MAP_SIZE	(_AC(1, UL) << SWAPPER_TABLE_SHIFT)
-
 /*
  * Initial memory map attributes.
  */