]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
objtool: Remove annotate_{,un}reachable()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Nov 2024 09:39:04 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:35 +0000 (18:25 +0100)
commit2cfd0e5084e389ffd4e4fb73eec9c1cd5b2f7284
tree49e3bd134693ec8b3cc9a1e00bfba2bbe357a9a0
parent8cc451444cfd569746d2e32cd87da0600d73ed2b
objtool: Remove annotate_{,un}reachable()

[ Upstream commit 06e24745985c8dd0da18337503afcf2f2fdbdff1 ]

There are no users of annotate_reachable() left.

And the annotate_unreachable() usage in unreachable() is plain wrong;
it will hide dangerous fall-through code-gen.

Remove both.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20241128094312.235637588@infradead.org
Stable-dep-of: 73cfc53cc3b6 ("objtool: Fix C jump table annotations for Clang")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/compiler.h
tools/objtool/check.c