diff options
author | Josh Poimboeuf <[email protected]> | 2023-05-30 16:07:41 -0700 |
---|---|---|
committer | Josh Poimboeuf <[email protected]> | 2023-06-07 09:54:45 -0700 |
commit | ac27ecf68a1ada240bb71531dc2d30cde04ad70a (patch) | |
tree | 902a33c67cd06f16126d85cf01c40f418ee94d82 /lib/mpi/mpi-sub-ui.c | |
parent | 020126239b8f376ed2f0bef9dc07d0b280a0b7f5 (diff) |
x86/entry: Move thunk restore code into thunk functions
There's no need for both thunk functions to jump to the same shared
thunk restore code which lives outside the thunk function boundaries.
It disrupts i-cache locality and confuses objtool. Keep it simple by
keeping each thunk's restore code self-contained within the function.
Fixes a bunch of false positive "missing __noreturn" warnings like:
vmlinux.o: warning: objtool: do_arch_prctl_common+0xf4: preempt_schedule_thunk() is missing a __noreturn annotation
Fixes: fedb724c3db5 ("objtool: Detect missing __noreturn annotations")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Link: https://lore.kernel.org/r/46aa8aeb716f302e22e1673ae15ee6fe050b41f4.1685488050.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions