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

Josh Poimboeuf
2025-02-07T02:51:29Z

On Thu, Feb 06, 2025 at 10:10:36AM -0700, Nathan Chancellor wrote:
> Right, I think gating on '!COMPILE_TEST' would not be a terrible way to
> introduce it. We would definitely want to remove that dependency as
> soon as possible because we want compile testers to be qble to find
> these problems and have them be noticeable but it should make the
> introduction of CONFIG_OBJTOOL_WERROR less disruptive.

I want to get CONFIG_OBJTOOL_WERROR merged soon. I'm working on some
other patches to go along with it that will hopefully ease some of the
pain. I'll post those soon and then hopefully we can get it into
linux-next.

I didn't quite follow the OBJTOOL_FLAGS idea. We already have
OBJTOOL_ARGS which allows adding arguments (though not removing them),
was it mean to be something like that?

I agree we might want to ease into the pool with !COMPILE_TEST.

--
Josh