Skip to content

Commit adcfb8c

Browse files
author
Vasily Gorbik
committed
s390/unwind: always inline get_stack_pointer
Always inline get_stack_pointer() to avoid potential problems due to compiler inlining decisions, i.e. getting stack pointer of get_stack_pointer() itself which is later reused. Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent d497b7e commit adcfb8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/include/asm/stacktrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ static inline bool on_stack(struct stack_info *info,
3333
return addr >= info->begin && addr + len <= info->end;
3434
}
3535

36-
static inline unsigned long get_stack_pointer(struct task_struct *task,
37-
struct pt_regs *regs)
36+
static __always_inline unsigned long get_stack_pointer(struct task_struct *task,
37+
struct pt_regs *regs)
3838
{
3939
if (regs)
4040
return (unsigned long) kernel_stack_pointer(regs);

0 commit comments

Comments
 (0)