Skip to content

Commit 4c92c12

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: asm-offsets: remove COMPAT_{RT_,SIGFRAME_REGS_OFFSET
The COMPAT_SIGFRAME_REGS_OFFSET and COMPAT_RT_SIGFRAME_REGS_OFFSET defintions aren't used anywhere. They were added in commit: f14d802 ("arm64: compat: Generate asm offsets for signals") ... and subsequently their only user was removed in commit: 2d07196 ("arm64: compat: Remove 32-bit sigreturn code from the vDSO") ... leaving them unused. Remove them. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241007123921.549340-4-mark.rutland@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 7bd8870 commit 4c92c12

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/arm64/kernel/asm-offsets.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <asm/fixmap.h>
2121
#include <asm/thread_info.h>
2222
#include <asm/memory.h>
23-
#include <asm/signal32.h>
2423
#include <asm/smp_plat.h>
2524
#include <asm/suspend.h>
2625
#include <linux/kbuild.h>
@@ -96,11 +95,6 @@ int main(void)
9695
#endif
9796
DEFINE(FREGS_SIZE, sizeof(struct ftrace_regs));
9897
BLANK();
99-
#endif
100-
#ifdef CONFIG_COMPAT
101-
DEFINE(COMPAT_SIGFRAME_REGS_OFFSET, offsetof(struct compat_sigframe, uc.uc_mcontext.arm_r0));
102-
DEFINE(COMPAT_RT_SIGFRAME_REGS_OFFSET, offsetof(struct compat_rt_sigframe, sig.uc.uc_mcontext.arm_r0));
103-
BLANK();
10498
#endif
10599
DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id.counter));
106100
BLANK();

0 commit comments

Comments
 (0)