mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64/mm: Drop PMD_SECT_VALID
@ 2024-07-24  4:47 Anshuman Khandual
  2024-07-24  7:52 ` Ryan Roberts
  2024-08-16 15:15 ` Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Anshuman Khandual @ 2024-07-24  4:47 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Anshuman Khandual, Catalin Marinas, Will Deacon, Ryan Roberts,
	linux-kernel

This just drops off the macro PMD_SECT_VALID which remains unused. Because
macro PMD_TYPE_SECT with same value (_AT(pmdval_t, 1) << 0), gets used for
creating or updating given block mappings.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
 arch/arm64/include/asm/pgtable-hwdef.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index 1f60aa1bc750..86e803ea8885 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -135,7 +135,6 @@
 /*
  * Section
  */
-#define PMD_SECT_VALID		(_AT(pmdval_t, 1) << 0)
 #define PMD_SECT_USER		(_AT(pmdval_t, 1) << 6)		/* AP[1] */
 #define PMD_SECT_RDONLY		(_AT(pmdval_t, 1) << 7)		/* AP[2] */
 #define PMD_SECT_S		(_AT(pmdval_t, 3) << 8)
-- 
2.30.2


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

* Re: [PATCH] arm64/mm: Drop PMD_SECT_VALID
  2024-07-24  4:47 [PATCH] arm64/mm: Drop PMD_SECT_VALID Anshuman Khandual
@ 2024-07-24  7:52 ` Ryan Roberts
  2024-08-16 15:15 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Ryan Roberts @ 2024-07-24  7:52 UTC (permalink / raw)
  To: Anshuman Khandual, linux-arm-kernel
  Cc: Catalin Marinas, Will Deacon, linux-kernel

On 24/07/2024 05:47, Anshuman Khandual wrote:
> This just drops off the macro PMD_SECT_VALID which remains unused. Because
> macro PMD_TYPE_SECT with same value (_AT(pmdval_t, 1) << 0), gets used for
> creating or updating given block mappings.
> 
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
> Cc: Ryan Roberts <ryan.roberts@arm.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>

Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>

> ---
>  arch/arm64/include/asm/pgtable-hwdef.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
> index 1f60aa1bc750..86e803ea8885 100644
> --- a/arch/arm64/include/asm/pgtable-hwdef.h
> +++ b/arch/arm64/include/asm/pgtable-hwdef.h
> @@ -135,7 +135,6 @@
>  /*
>   * Section
>   */
> -#define PMD_SECT_VALID		(_AT(pmdval_t, 1) << 0)
>  #define PMD_SECT_USER		(_AT(pmdval_t, 1) << 6)		/* AP[1] */
>  #define PMD_SECT_RDONLY		(_AT(pmdval_t, 1) << 7)		/* AP[2] */
>  #define PMD_SECT_S		(_AT(pmdval_t, 3) << 8)


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

* Re: [PATCH] arm64/mm: Drop PMD_SECT_VALID
  2024-07-24  4:47 [PATCH] arm64/mm: Drop PMD_SECT_VALID Anshuman Khandual
  2024-07-24  7:52 ` Ryan Roberts
@ 2024-08-16 15:15 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2024-08-16 15:15 UTC (permalink / raw)
  To: linux-arm-kernel, Anshuman Khandual
  Cc: catalin.marinas, kernel-team, Will Deacon, Ryan Roberts, linux-kernel

On Wed, 24 Jul 2024 10:17:12 +0530, Anshuman Khandual wrote:
> This just drops off the macro PMD_SECT_VALID which remains unused. Because
> macro PMD_TYPE_SECT with same value (_AT(pmdval_t, 1) << 0), gets used for
> creating or updating given block mappings.
> 
> 

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/mm: Drop PMD_SECT_VALID
      https://git.kernel.org/arm64/c/4b6049b643f4

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-24  4:47 [PATCH] arm64/mm: Drop PMD_SECT_VALID Anshuman Khandual
2024-07-24  7:52 ` Ryan Roberts
2024-08-16 15:15 ` Will Deacon

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

all inboxes | Powered by JetHome®