[PATCH 2/2] kbuild: Use '-fms-anonymous-structs' if it is available
Nicolas Schier
nsc at kernel.org
Thu Mar 5 21:25:55 AEDT 2026
On Mon, 23 Feb 2026 12:10:29 -0700, Nathan Chancellor <nathan at kernel.org> wrote:
> Clang recently added '-fms-anonymous-structs' [1] to specifically enable
> the Microsoft tagged anonymous structure / union extension, for which
> the kernel added '-fms-extensions' in commit c4781dc3d1cf ("Kbuild:
> enable -fms-extensions"). Switch to this more narrow option if it is
> available, which would have helped avoid the issue addressed by
> commit a6773e6932cb ("jfs: Rename _inline to avoid conflict with clang's
> '-fms-extensions'"). GCC has talked about adding a similar flag [2] as
> well but potentially naming it differently.
>
> [...]
Reviewed-by: Nicolas Schier <nsc at kernel.org>
--
Nicolas
More information about the Linuxppc-dev
mailing list