]> Git Repo - linux.git/commitdiff
arm64: asm-offsets: remove VM_EXEC and PAGE_SZ
authorMark Rutland <[email protected]>
Mon, 7 Oct 2024 12:39:19 +0000 (13:39 +0100)
committerCatalin Marinas <[email protected]>
Tue, 15 Oct 2024 17:42:07 +0000 (18:42 +0100)
The VM_EXEC definition duplicates the common VM_EXEC definition from
<linux/mm.h>. The common definition cannot safely be included by
assembly code but currently we don't need to use VM_EXEC in assembly.

The PAGE_SZ definition duplicates arm64's definition of PAGE_SIZE from
<asm/page-def.h> which can safely be included from assembly code and
should be used directly.

Remove the duplicate definitions.

Signed-off-by: Mark Rutland <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/kernel/asm-offsets.c

index e6a6b5160f75e954780b42f61ae64413eda43138..7c7c8d98256f930dc1a14d0f36187eb5c9d13713 100644 (file)
@@ -96,10 +96,6 @@ int main(void)
   DEFINE(FREGS_SIZE,           sizeof(struct ftrace_regs));
   BLANK();
 #endif
-  DEFINE(VM_EXEC,              VM_EXEC);
-  BLANK();
-  DEFINE(PAGE_SZ,              PAGE_SIZE);
-  BLANK();
   DEFINE(DMA_TO_DEVICE,                DMA_TO_DEVICE);
   DEFINE(DMA_FROM_DEVICE,      DMA_FROM_DEVICE);
   BLANK();
This page took 0.057773 seconds and 4 git commands to generate.