]> 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)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Apr 2022 08:13:07 +0000 (10:13 +0200)
commite87f4152e542610d0b4c6c8548964a68a59d2040
treed3f7e6c89d6b0948b6ee85da5adfc2bd73d9bfab
parent3123109284176b1532874591f7c81f3837bbdc17
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