Re: Linux-6.17 meets gcc trunk

From: Kees Cook

Date: Tue Sep 30 2025 - 12:06:41 EST


On Tue, Sep 30, 2025 at 08:08:27AM +0000, David Binderman wrote:
> Hello there,
>
> I just tried to compile linux-6.17 with gcc trunk. It said:
>
> HDRINST usr/include/asm/types.h
> In file included from scripts/gcc-plugins/latent_entropy_plugin.c:78:
> scripts/gcc-plugins/gcc-common.h:176:25: error: ‘TODO_verify_il’ was not declared in this scope; did you mean ‘TODO_verify_flow’?
> 176 | #define TODO_verify_ssa TODO_verify_il
> | ^~~~~~~~~~~~~~
> scripts/gcc-plugins/latent_entropy_plugin.c:567:27: note: in expansion of macro ‘TODO_verify_ssa’
> 567 | #define TODO_FLAGS_FINISH TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func \
> | ^~~~~~~~~~~~~~~
> scripts/gcc-plugins/gcc-generate-gimple-pass.h:86:43: note: in expansion of macro ‘TODO_FLAGS_FINISH’
> 86 | .todo_flags_finish = TODO_FLAGS_FINISH,

This was fixed here:
https://git.kernel.org/linus/a40282dd3c484e6c882e93f4680e0a3ef3814453

It will need backporting to prior kernel releases.

-Kees

--
Kees Cook