summaryrefslogtreecommitdiff
path: root/include/linux/sched/task_stack.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-03-23 20:02:41 +0100
committerBorislav Petkov <bp@suse.de>2022-04-04 10:13:07 +0200
commite87f4152e542610d0b4c6c8548964a68a59d2040 (patch)
treed3f7e6c89d6b0948b6ee85da5adfc2bd73d9bfab /include/linux/sched/task_stack.h
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
task_stack, x86/cea: Force-inline stack helpers
Force-inline two stack helpers to fix the following objtool warnings: vmlinux.o: warning: objtool: in_task_stack()+0xc: call to task_stack_page() leaves .noinstr.text section vmlinux.o: warning: objtool: in_entry_stack()+0x10: call to cpu_entry_stack() leaves .noinstr.text section Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220324183607.31717-2-bp@alien8.de
Diffstat (limited to 'include/linux/sched/task_stack.h')
-rw-r--r--include/linux/sched/task_stack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/task_stack.h b/include/linux/sched/task_stack.h
index 892562ebbd3a..5e799a47431e 100644
--- a/include/linux/sched/task_stack.h
+++ b/include/linux/sched/task_stack.h
@@ -16,7 +16,7 @@
* try_get_task_stack() instead. task_stack_page will return a pointer
* that could get freed out from under you.
*/
-static inline void *task_stack_page(const struct task_struct *task)
+static __always_inline void *task_stack_page(const struct task_struct *task)
{
return task->stack;
}