[Focal:*-5.15] UBUNTU: SAUCE: Work-around compile bug in gcc-9.4

Stefan Bader stefan.bader at canonical.com
Tue Jan 20 20:20:15 UTC 2026


It turned out that I messed up the test compile and my change does 
nothing to fix the problem. After a lot more digging I ended up reverting

minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp()

which not only uses the macro stated but also converts the test into 
using statically_true() which seems to fail at least with the range 
check when using gcc-9. Just reverting the test used makes things even 
worse so I gave up and just reverted the whole thing. This seems at 
least successful for am64 (still want to do a full test build but wanted 
to give quick feedback on the list).

I am attaching the revert as it has to be context adjusted. Lots of code 
moved around.

-Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-minmax.h-use-BUILD_BUG_ON_MSG-for-the-lo-hi-t.patch
Type: text/x-patch
Size: 1162 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20260120/113d0dc3/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 52669 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20260120/113d0dc3/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20260120/113d0dc3/attachment-0001.sig>


More information about the kernel-team mailing list