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
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-01 13:16:47 +0100
commitb8034ca2fdcc6606827a77fc330472e0a2fcb1e1 (patch)
treec26ba008c562c94b27ae994a1a3f2dc388b0820c /include/linux/sched/task_stack.h
parent68ffe3ec198dba62ce2fca2ce0fcf0c15d2cbe78 (diff)
task_stack, x86/cea: Force-inline stack helpers
[ Upstream commit e87f4152e542610d0b4c6c8548964a68a59d2040 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
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 f24575942dab..879a5c8f930b 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;
}