]> git.baikalelectronics.ru Git - kernel.git/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>
Wed, 28 Sep 2022 09:03:57 +0000 (11:03 +0200)
commit621a176e58a7e798395a36e34d9db9bc91752dd6
tree7bfc884d0f88a42e0bad7a1bd3f82e20efb62dd6
parent098a5b8e911c94e045ad350f93f3d75a86396298
task_stack, x86/cea: Force-inline stack helpers

[ Upstream commit 4efe7e28f95584c40c124b546050f0c0ef7ce3c5 ]

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: eadc2a204cfa ("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