Skip to content

Commit 7bd8870

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: asm-offsets: remove VMA_VM_*
The VMA_VM_MM definition is only used by the vma_vm_mm macro, which itself is unused. The VMA_VM_FLAGS definition isn't used anywhere. Remove them all. 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]>
1 parent ab23df1 commit 7bd8870

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

arch/arm64/include/asm/assembler.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,6 @@ alternative_endif
248248
ldr \dst, [\dst, \tmp]
249249
.endm
250250

251-
/*
252-
* vma_vm_mm - get mm pointer from vma pointer (vma->vm_mm)
253-
*/
254-
.macro vma_vm_mm, rd, rn
255-
ldr \rd, [\rn, #VMA_VM_MM]
256-
.endm
257-
258251
/*
259252
* read_ctr - read CTR_EL0. If the system has mismatched register fields,
260253
* provide the system wide safe value from arm64_ftr_reg_ctrel0.sys_val

arch/arm64/kernel/asm-offsets.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ int main(void)
104104
#endif
105105
DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id.counter));
106106
BLANK();
107-
DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm));
108-
DEFINE(VMA_VM_FLAGS, offsetof(struct vm_area_struct, vm_flags));
109-
BLANK();
110107
DEFINE(VM_EXEC, VM_EXEC);
111108
BLANK();
112109
DEFINE(PAGE_SZ, PAGE_SIZE);

0 commit comments

Comments
 (0)