Skip to content

Commit 4ce689b

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: asm-offsets: remove VM_EXEC and PAGE_SZ
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 <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241007123921.549340-6-mark.rutland@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 1abc7c1 commit 4ce689b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/arm64/kernel/asm-offsets.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ int main(void)
9696
DEFINE(FREGS_SIZE, sizeof(struct ftrace_regs));
9797
BLANK();
9898
#endif
99-
DEFINE(VM_EXEC, VM_EXEC);
100-
BLANK();
101-
DEFINE(PAGE_SZ, PAGE_SIZE);
102-
BLANK();
10399
DEFINE(DMA_TO_DEVICE, DMA_TO_DEVICE);
104100
DEFINE(DMA_FROM_DEVICE, DMA_FROM_DEVICE);
105101
BLANK();

0 commit comments

Comments
 (0)