diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-03-19 12:06:57 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-04-03 12:22:19 +0200 |
commit | 627b72bee84d6652e0af26617e71ce2b3c18fcd5 (patch) | |
tree | 69ad53b8df63c32d9a9e1d5de739d37f613f7f4a /arch/powerpc/include/asm/ptrace.h | |
parent | powerpc/signal32: Reorder user reads in restore_tm_user_regs() (diff) | |
download | linux-627b72bee84d6652e0af26617e71ce2b3c18fcd5.tar.xz linux-627b72bee84d6652e0af26617e71ce2b3c18fcd5.zip |
powerpc/signal32: Convert restore_[tm]_user_regs() to user access block
Convert restore_user_regs() and restore_tm_user_regs()
to use user_access_read_begin/end blocks.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/181adf15a6f644efcd1aeafb355f3578ff1b6bc5.1616151715.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/ptrace.h')
-rw-r--r-- | arch/powerpc/include/asm/ptrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/ptrace.h b/arch/powerpc/include/asm/ptrace.h index f10498e1b3f6..95600f3a6523 100644 --- a/arch/powerpc/include/asm/ptrace.h +++ b/arch/powerpc/include/asm/ptrace.h @@ -245,7 +245,7 @@ static inline bool trap_norestart(struct pt_regs *regs) return regs->trap & 0x10; } -static inline void set_trap_norestart(struct pt_regs *regs) +static __always_inline void set_trap_norestart(struct pt_regs *regs) { regs->trap |= 0x10; } |