]> git.itanic.dy.fi Git - linux-stable/commit
task_stack, x86/cea: Force-inline stack helpers
authorBorislav Petkov <bp@suse.de>
Wed, 23 Mar 2022 19:02:41 +0000 (20:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:39:43 +0000 (12:39 +0200)
commit64840a4a2d8ef0b1028e0ba5bf32b75729d0cfab
tree0ffb11fa7dc04acf8dbabb61b6ad78fe1141b665
parent0b009e5fd1462c12870a4908bbe862f87a5967ad
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
Stable-dep-of: 54c3931957f6 ("tracing: hold caller_addr to hardirq_{enable,disable}_ip")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/cpu_entry_area.h
include/linux/sched/task_stack.h