Re: [PATCH 0/4] Fix the x86 defconfig build with GCC 17

From: Borislav Petkov

Date: Wed Nov 04 2026 - 11:58:09 EST


On Wed, Nov 04, 2026 at 08:07:17AM -0800, Vineet Gupta wrote:
> Fix build warnings and failures (CONFIG_WERROR=y) with a GCC 17 build.
> GCC 17 adds -Wconstant-logical-operand which is strict about operands
> of && or || that fold to a constant other than 0 or 1.

Just from looking at it, my initial reaction would be to disable that option.

Because, frankly, I don't see the point.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette