Re: [PATCH 11/17] m68k: Add __attribute_const__ to ffs()-family implementations

2025-08-05 Thread Geert Uytterhoeven
On Mon, 4 Aug 2025 at 18:44, Kees Cook wrote: > While tracking down a problem where constant expressions used by > BUILD_BUG_ON() suddenly stopped working[1], we found that an added static > initializer was convincing the compiler that it couldn't track the state > of the prior statically initiali

[PATCH 11/17] m68k: Add __attribute_const__ to ffs()-family implementations

2025-08-04 Thread Kees Cook
While tracking down a problem where constant expressions used by BUILD_BUG_ON() suddenly stopped working[1], we found that an added static initializer was convincing the compiler that it couldn't track the state of the prior statically initialized value. Tracing this down found that ffs() was used