[PATCH 3/5] linux: Replace zero-length array with flexible-array member on inotify struct
Florian Weimer
fweimer@redhat.com
Thu Jun 22 05:23:52 GMT 2023
* Cristian Rodríguez via Libc-alpha:
> Current kernel versions require a compiler supporting -std=gnu11
> and therefore supporting C99 flexible arrays. old versions require
> a c89 compiler supporting this feature as an extension.
Ugh, you are right:
commit 94dfc73e7cf4a31da66b8843f0b9283ddd6b8381
Author: Gustavo A. R. Silva <gustavoars@kernel.org>
Date: Wed Apr 6 19:36:51 2022 -0500
treewide: uapi: Replace zero-length arrays with flexible-array members
It's specifically targeting UAPI headers, so it's not a (harmless)
kernel-internal change.
Do you know if anyone has looked at the compatibility impact of this
change on C parsers? I'm not sure if we can do the same thing. In
particular, if kernel headers are not C89-compatible, we may have to add
kludges to our own headers that avoid including them in C89 mode.
Thanks,
Florian
More information about the Libc-alpha
mailing list