Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Asbjørn Sloth Tønnesen and committed by
Jakub Kicinski
68e83f34 17fa6ee3

+41
+1
drivers/android/binder_netlink.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/binder.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
drivers/android/binder_netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/binder.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_BINDER_GEN_H 7 8 #define _LINUX_BINDER_GEN_H
+1
drivers/dpll/dpll_nl.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/dpll.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
drivers/dpll/dpll_nl.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/dpll.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_DPLL_GEN_H 7 8 #define _LINUX_DPLL_GEN_H
+1
drivers/net/team/team_nl.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/team.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
drivers/net/team/team_nl.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/team.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_TEAM_GEN_H 7 8 #define _LINUX_TEAM_GEN_H
+1
fs/lockd/netlink.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/lockd.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
fs/lockd/netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/lockd.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_LOCKD_GEN_H 7 8 #define _LINUX_LOCKD_GEN_H
+1
fs/nfsd/netlink.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/nfsd.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
fs/nfsd/netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/nfsd.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_NFSD_GEN_H 7 8 #define _LINUX_NFSD_GEN_H
+1
include/uapi/linux/android/binder_netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/binder.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_ANDROID_BINDER_NETLINK_H 7 8 #define _UAPI_LINUX_ANDROID_BINDER_NETLINK_H
+1
include/uapi/linux/dpll.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/dpll.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_DPLL_H 7 8 #define _UAPI_LINUX_DPLL_H
+1
include/uapi/linux/fou.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/fou.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_FOU_H 7 8 #define _UAPI_LINUX_FOU_H
+1
include/uapi/linux/handshake.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/handshake.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_HANDSHAKE_H 7 8 #define _UAPI_LINUX_HANDSHAKE_H
+1
include/uapi/linux/if_team.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/team.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_IF_TEAM_H 7 8 #define _UAPI_LINUX_IF_TEAM_H
+1
include/uapi/linux/lockd_netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/lockd.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_LOCKD_NETLINK_H 7 8 #define _UAPI_LINUX_LOCKD_NETLINK_H
+1
include/uapi/linux/mptcp_pm.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/mptcp_pm.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_MPTCP_PM_H 7 8 #define _UAPI_LINUX_MPTCP_PM_H
+1
include/uapi/linux/net_shaper.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/net_shaper.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_NET_SHAPER_H 7 8 #define _UAPI_LINUX_NET_SHAPER_H
+1
include/uapi/linux/netdev.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/netdev.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_NETDEV_H 7 8 #define _UAPI_LINUX_NETDEV_H
+1
include/uapi/linux/nfsd_netlink.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/nfsd.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_NFSD_NETLINK_H 7 8 #define _UAPI_LINUX_NFSD_NETLINK_H
+1
include/uapi/linux/ovpn.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/ovpn.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_OVPN_H 7 8 #define _UAPI_LINUX_OVPN_H
+1
include/uapi/linux/psp.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/psp.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_PSP_H 7 8 #define _UAPI_LINUX_PSP_H
+1
net/core/netdev-genl-gen.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/netdev.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/core/netdev-genl-gen.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/netdev.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_NETDEV_GEN_H 7 8 #define _LINUX_NETDEV_GEN_H
+1
net/handshake/genl.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/handshake.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/handshake/genl.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/handshake.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_HANDSHAKE_GEN_H 7 8 #define _LINUX_HANDSHAKE_GEN_H
+1
net/ipv4/fou_nl.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/fou.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/ipv4/fou_nl.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/fou.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_FOU_GEN_H 7 8 #define _LINUX_FOU_GEN_H
+1
net/mptcp/mptcp_pm_gen.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/mptcp_pm.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/mptcp/mptcp_pm_gen.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/mptcp_pm.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_MPTCP_PM_GEN_H 7 8 #define _LINUX_MPTCP_PM_GEN_H
+1
net/psp/psp-nl-gen.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/psp.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/psp/psp-nl-gen.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/psp.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_PSP_GEN_H 7 8 #define _LINUX_PSP_GEN_H
+1
net/shaper/shaper_nl_gen.c
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/net_shaper.yaml */ 4 4 /* YNL-GEN kernel source */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #include <net/netlink.h> 7 8 #include <net/genetlink.h>
+1
net/shaper/shaper_nl_gen.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/net_shaper.yaml */ 4 4 /* YNL-GEN kernel header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _LINUX_NET_SHAPER_GEN_H 7 8 #define _LINUX_NET_SHAPER_GEN_H
+1
tools/include/uapi/linux/netdev.h
··· 2 2 /* Do not edit directly, auto-generated from: */ 3 3 /* Documentation/netlink/specs/netdev.yaml */ 4 4 /* YNL-GEN uapi header */ 5 + /* To regenerate run: tools/net/ynl/ynl-regen.sh */ 5 6 6 7 #ifndef _UAPI_LINUX_NETDEV_H 7 8 #define _UAPI_LINUX_NETDEV_H
+1
tools/net/ynl/pyynl/ynl_gen_c.py
··· 3442 3442 if args.fn_prefix: 3443 3443 line += f' --function-prefix {args.fn_prefix}' 3444 3444 cw.p(f'/* YNL-ARG{line} */') 3445 + cw.p('/* To regenerate run: tools/net/ynl/ynl-regen.sh */') 3445 3446 cw.nl() 3446 3447 3447 3448 if args.mode == 'uapi':