Skip to content

Commit

Permalink
s390: always inline current_stack_pointer()
Browse files Browse the repository at this point in the history
This function must be inlined since any caller expects the current
stack pointer; which wouldn't be true if the function isn't inlined.

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
heicarst authored and Vasily Gorbik committed Oct 31, 2019
1 parent 2416cef commit 265f79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ unsigned long get_wchan(struct task_struct *p);
/* Has task runtime instrumentation enabled ? */
#define is_ri_task(tsk) (!!(tsk)->thread.ri_cb)

static inline unsigned long current_stack_pointer(void)
static __always_inline unsigned long current_stack_pointer(void)
{
unsigned long sp;

Expand Down

0 comments on commit 265f79d

Please sign in to comment.