]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Clean up compiler flag usage
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:33 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:24 +0000 (14:45 -0700)
commit31eca25f3a3b0de960ca9a478e5a4b2d0b2e8558
treecd33f15a7956b6961979c4d583ee3c5cb6405c3f
parent34244f784c6d062af184944a25f40ab50dfdb67a
objtool: Clean up compiler flag usage

KBUILD_HOSTCFLAGS and KBUILD_HOSTLDFLAGS aren't defined when objtool is
built standalone.  Also, the EXTRA_WARNINGS flags are rather arbitrary.

Make things simpler and more consistent by specifying compiler flags
explicitly and tweaking the warnings.  Also make a few code tweaks to
make the new warnings happy.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/Makefile
tools/objtool/check.c
tools/objtool/elf.c