tools: ynl-gen: add regeneration comment

Add a comment on regeneration to the generated files.

The comment is placed after the YNL-GEN line[1], as to not interfere
with ynl-regen.sh's detection logic.

[1] and after the optional YNL-ARG line.

Link: https://lore.kernel.org/r/aR5m174O7pklKrMR@zx2c4.com/
Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251120174429.390574-3-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Asbjørn Sloth Tønnesen 2025-11-20 17:44:27 +00:00 committed by Jakub Kicinski
parent 17fa6ee35b
commit 68e83f3472
41 changed files with 41 additions and 0 deletions

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/binder.yaml */ /* Documentation/netlink/specs/binder.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/binder.yaml */ /* Documentation/netlink/specs/binder.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_BINDER_GEN_H #ifndef _LINUX_BINDER_GEN_H
#define _LINUX_BINDER_GEN_H #define _LINUX_BINDER_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/dpll.yaml */ /* Documentation/netlink/specs/dpll.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/dpll.yaml */ /* Documentation/netlink/specs/dpll.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_DPLL_GEN_H #ifndef _LINUX_DPLL_GEN_H
#define _LINUX_DPLL_GEN_H #define _LINUX_DPLL_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/ovpn.yaml */ /* Documentation/netlink/specs/ovpn.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/ovpn.yaml */ /* Documentation/netlink/specs/ovpn.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_OVPN_GEN_H #ifndef _LINUX_OVPN_GEN_H
#define _LINUX_OVPN_GEN_H #define _LINUX_OVPN_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/team.yaml */ /* Documentation/netlink/specs/team.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/team.yaml */ /* Documentation/netlink/specs/team.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_TEAM_GEN_H #ifndef _LINUX_TEAM_GEN_H
#define _LINUX_TEAM_GEN_H #define _LINUX_TEAM_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/lockd.yaml */ /* Documentation/netlink/specs/lockd.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/lockd.yaml */ /* Documentation/netlink/specs/lockd.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_LOCKD_GEN_H #ifndef _LINUX_LOCKD_GEN_H
#define _LINUX_LOCKD_GEN_H #define _LINUX_LOCKD_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/nfsd.yaml */ /* Documentation/netlink/specs/nfsd.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/nfsd.yaml */ /* Documentation/netlink/specs/nfsd.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_NFSD_GEN_H #ifndef _LINUX_NFSD_GEN_H
#define _LINUX_NFSD_GEN_H #define _LINUX_NFSD_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/binder.yaml */ /* Documentation/netlink/specs/binder.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_ANDROID_BINDER_NETLINK_H #ifndef _UAPI_LINUX_ANDROID_BINDER_NETLINK_H
#define _UAPI_LINUX_ANDROID_BINDER_NETLINK_H #define _UAPI_LINUX_ANDROID_BINDER_NETLINK_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/dpll.yaml */ /* Documentation/netlink/specs/dpll.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_DPLL_H #ifndef _UAPI_LINUX_DPLL_H
#define _UAPI_LINUX_DPLL_H #define _UAPI_LINUX_DPLL_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/ethtool.yaml */ /* Documentation/netlink/specs/ethtool.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H #ifndef _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H
#define _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H #define _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/fou.yaml */ /* Documentation/netlink/specs/fou.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_FOU_H #ifndef _UAPI_LINUX_FOU_H
#define _UAPI_LINUX_FOU_H #define _UAPI_LINUX_FOU_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/handshake.yaml */ /* Documentation/netlink/specs/handshake.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_HANDSHAKE_H #ifndef _UAPI_LINUX_HANDSHAKE_H
#define _UAPI_LINUX_HANDSHAKE_H #define _UAPI_LINUX_HANDSHAKE_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/team.yaml */ /* Documentation/netlink/specs/team.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_IF_TEAM_H #ifndef _UAPI_LINUX_IF_TEAM_H
#define _UAPI_LINUX_IF_TEAM_H #define _UAPI_LINUX_IF_TEAM_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/lockd.yaml */ /* Documentation/netlink/specs/lockd.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_LOCKD_NETLINK_H #ifndef _UAPI_LINUX_LOCKD_NETLINK_H
#define _UAPI_LINUX_LOCKD_NETLINK_H #define _UAPI_LINUX_LOCKD_NETLINK_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp_pm.yaml */ /* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_MPTCP_PM_H #ifndef _UAPI_LINUX_MPTCP_PM_H
#define _UAPI_LINUX_MPTCP_PM_H #define _UAPI_LINUX_MPTCP_PM_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/net_shaper.yaml */ /* Documentation/netlink/specs/net_shaper.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_NET_SHAPER_H #ifndef _UAPI_LINUX_NET_SHAPER_H
#define _UAPI_LINUX_NET_SHAPER_H #define _UAPI_LINUX_NET_SHAPER_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/netdev.yaml */ /* Documentation/netlink/specs/netdev.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_NETDEV_H #ifndef _UAPI_LINUX_NETDEV_H
#define _UAPI_LINUX_NETDEV_H #define _UAPI_LINUX_NETDEV_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/nfsd.yaml */ /* Documentation/netlink/specs/nfsd.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_NFSD_NETLINK_H #ifndef _UAPI_LINUX_NFSD_NETLINK_H
#define _UAPI_LINUX_NFSD_NETLINK_H #define _UAPI_LINUX_NFSD_NETLINK_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/ovpn.yaml */ /* Documentation/netlink/specs/ovpn.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_OVPN_H #ifndef _UAPI_LINUX_OVPN_H
#define _UAPI_LINUX_OVPN_H #define _UAPI_LINUX_OVPN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/psp.yaml */ /* Documentation/netlink/specs/psp.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_PSP_H #ifndef _UAPI_LINUX_PSP_H
#define _UAPI_LINUX_PSP_H #define _UAPI_LINUX_PSP_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/netdev.yaml */ /* Documentation/netlink/specs/netdev.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/netdev.yaml */ /* Documentation/netlink/specs/netdev.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_NETDEV_GEN_H #ifndef _LINUX_NETDEV_GEN_H
#define _LINUX_NETDEV_GEN_H #define _LINUX_NETDEV_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/devlink.yaml */ /* Documentation/netlink/specs/devlink.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/devlink.yaml */ /* Documentation/netlink/specs/devlink.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_DEVLINK_GEN_H #ifndef _LINUX_DEVLINK_GEN_H
#define _LINUX_DEVLINK_GEN_H #define _LINUX_DEVLINK_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/handshake.yaml */ /* Documentation/netlink/specs/handshake.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/handshake.yaml */ /* Documentation/netlink/specs/handshake.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_HANDSHAKE_GEN_H #ifndef _LINUX_HANDSHAKE_GEN_H
#define _LINUX_HANDSHAKE_GEN_H #define _LINUX_HANDSHAKE_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/fou.yaml */ /* Documentation/netlink/specs/fou.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/fou.yaml */ /* Documentation/netlink/specs/fou.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_FOU_GEN_H #ifndef _LINUX_FOU_GEN_H
#define _LINUX_FOU_GEN_H #define _LINUX_FOU_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp_pm.yaml */ /* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/mptcp_pm.yaml */ /* Documentation/netlink/specs/mptcp_pm.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_MPTCP_PM_GEN_H #ifndef _LINUX_MPTCP_PM_GEN_H
#define _LINUX_MPTCP_PM_GEN_H #define _LINUX_MPTCP_PM_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/psp.yaml */ /* Documentation/netlink/specs/psp.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/psp.yaml */ /* Documentation/netlink/specs/psp.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_PSP_GEN_H #ifndef _LINUX_PSP_GEN_H
#define _LINUX_PSP_GEN_H #define _LINUX_PSP_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/net_shaper.yaml */ /* Documentation/netlink/specs/net_shaper.yaml */
/* YNL-GEN kernel source */ /* YNL-GEN kernel source */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#include <net/netlink.h> #include <net/netlink.h>
#include <net/genetlink.h> #include <net/genetlink.h>

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/net_shaper.yaml */ /* Documentation/netlink/specs/net_shaper.yaml */
/* YNL-GEN kernel header */ /* YNL-GEN kernel header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _LINUX_NET_SHAPER_GEN_H #ifndef _LINUX_NET_SHAPER_GEN_H
#define _LINUX_NET_SHAPER_GEN_H #define _LINUX_NET_SHAPER_GEN_H

View File

@ -2,6 +2,7 @@
/* Do not edit directly, auto-generated from: */ /* Do not edit directly, auto-generated from: */
/* Documentation/netlink/specs/netdev.yaml */ /* Documentation/netlink/specs/netdev.yaml */
/* YNL-GEN uapi header */ /* YNL-GEN uapi header */
/* To regenerate run: tools/net/ynl/ynl-regen.sh */
#ifndef _UAPI_LINUX_NETDEV_H #ifndef _UAPI_LINUX_NETDEV_H
#define _UAPI_LINUX_NETDEV_H #define _UAPI_LINUX_NETDEV_H

View File

@ -3442,6 +3442,7 @@ def main():
if args.fn_prefix: if args.fn_prefix:
line += f' --function-prefix {args.fn_prefix}' line += f' --function-prefix {args.fn_prefix}'
cw.p(f'/* YNL-ARG{line} */') cw.p(f'/* YNL-ARG{line} */')
cw.p('/* To regenerate run: tools/net/ynl/ynl-regen.sh */')
cw.nl() cw.nl()
if args.mode == 'uapi': if args.mode == 'uapi':