]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Always inline task_size_max()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 21 Jun 2021 11:12:37 +0000 (13:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 22 Jun 2021 11:56:43 +0000 (13:56 +0200)
commiteeee55fa0a00b21f9d9f06f39c69c3ef624c9bd7
treef60e7bbc53dcb2120240a044e48f083b562a1ca5
parent678181872c12983c02d7622039f2254ca2a18035
x86: Always inline task_size_max()

Fix:

  vmlinux.o: warning: objtool: handle_bug()+0x10: call to task_size_max() leaves .noinstr.text section

When #UD isn't a BUG, we shouldn't violate noinstr (we'll still
probably die, but that's another story).

Fixes: a9c19cbb989c ("x86/cpu: Use alternative to generate the TASK_SIZE_MAX constant")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210621120120.682468274@infradead.org
arch/x86/include/asm/page_64.h