]> 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)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Apr 2022 08:13:07 +0000 (10:13 +0200)
commit4efe7e28f95584c40c124b546050f0c0ef7ce3c5
treed3f7e6c89d6b0948b6ee85da5adfc2bd73d9bfab
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
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
arch/x86/include/asm/cpu_entry_area.h
include/linux/sched/task_stack.h