https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108634
--- Comment #1 from Arsen Arsenović <arsen at aarsen dot me> --- The kernel's using wrong C(XX)FLAGS to compile the plugin. IMO, the best solution would be to dump $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) into a makefile that gets installed, so that plugins can use that