Re: [PATCH v3 0/2] objtool: Add option to fail build on vmlinux warnings

From: Josh Poimboeuf
Date: Mon Jan 13 2025 - 19:14:49 EST


On Mon, Jan 13, 2025 at 02:05:14PM +0000, Brendan Jackman wrote:
> This adds an option to objtool to exit with an error when it enounters
> warnings.
>
> Then, it adds a config to enable that flag. This enables you to fail
> the build e.g. when noinstr is violated.
>
> When that happens, you also get a more verbose log, for example when
> failing noisntr validation it dumps disassembly of the offending code.
>
> Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
> ---
> Changes in v3:
> - Added --verbose to objtool args (equivalent to OBJTOOL_VERBOSE=1, which
> Josh Poimboeuf suggested).
> - Link to v2: https://lore.kernel.org/r/20241218-objtool-strict-v2-0-a5297c961434@xxxxxxxxxx

Thanks! I'm putting it through bot testing now.

--
Josh