Re: [PATCH net-next v4 5/8] net: fou: regenerate the uAPI from the spec
From: Alexander Lobakin <hidden>
Date: 2023-01-24 17:52:17
Also in:
linux-doc
From: Alexander Lobakin <hidden>
Date: 2023-01-24 17:52:17
Also in:
linux-doc
From: Jakub Kicinski <kuba@kernel.org> Date: Fri, 20 Jan 2023 09:50:38 -0800
Regenerate the FOU uAPI header from the YAML spec. The flags now come before attributes which use them, and the comments for type disappear (coders should look at the spec instead).
Sorry I missed the whole history of this topic. Wanted to ask: if we can generate these headers and even C files, why ship the generated with the source code and not generate them during building? Or it's slow and/or requires some software etc.?
Acked-by: Stanislav Fomichev <redacted> Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- include/uapi/linux/fou.h | 54 +++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 28 deletions(-)
[...]
-#define FOU_CMD_MAX (__FOU_CMD_MAX - 1) +#define FOU_CMD_MAX (__FOU_CMD_MAX - 1) #endif /* _UAPI_LINUX_FOU_H */
Thanks, Olek