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

Josh Poimboeuf
2025-01-14T00:14:43Z

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@google.com>
> ---
> 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@google.com

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

--
Josh