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

From: Peter Zijlstra

Date: Thu Nov 05 2026 - 04:11:05 EST


On Wed, Nov 04, 2026 at 08:27:47AM -0800, Borislav Petkov wrote:
> 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.

Yes, this. This seems like a really pointless warning to me too.