Skip to content

Commit 58a0484

Browse files
Kemeng Shictmarinas
authored andcommitted
arm64: make member of struct pt_regs and it's offset macro in the same order
In struct pt_regs, member pstate is after member pc. Move offset macro of pstate after offset macro of pc to improve readability a little. Signed-off-by: Kemeng Shi <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent bce79b0 commit 58a0484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/asm-offsets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ int main(void)
7575
DEFINE(S_FP, offsetof(struct pt_regs, regs[29]));
7676
DEFINE(S_LR, offsetof(struct pt_regs, regs[30]));
7777
DEFINE(S_SP, offsetof(struct pt_regs, sp));
78-
DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));
7978
DEFINE(S_PC, offsetof(struct pt_regs, pc));
79+
DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));
8080
DEFINE(S_SYSCALLNO, offsetof(struct pt_regs, syscallno));
8181
DEFINE(S_SDEI_TTBR1, offsetof(struct pt_regs, sdei_ttbr1));
8282
DEFINE(S_PMR_SAVE, offsetof(struct pt_regs, pmr_save));

0 commit comments

Comments
 (0)