diff options
| author | Jakub Kicinski <[email protected]> | 2025-04-18 02:16:55 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-04-23 23:07:15 +0000 |
| commit | 7965facefaed629fe22f07595f16ee50e8aff1e3 (patch) | |
| tree | 888c4af2ee41f2702ef9b3bda94396e2491acdb7 /tools/net/ynl/pyynl/ynl_gen_c.py | |
| parent | net: stmmac: dwc-qos: calibrate tegra with mdio bus idle (diff) | |
| download | kernel-7965facefaed629fe22f07595f16ee50e8aff1e3.tar.gz kernel-7965facefaed629fe22f07595f16ee50e8aff1e3.zip | |
netlink: specs: allow header properties for attribute sets
rt-link has a number of disjoint headers, plus it uses attributes
of other families (e.g. DPLL). Allow declaring a attribute set
as "foreign" by specifying which header its definition is coming
from.
Reviewed-by: Donald Hunter <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/ynl_gen_c.py')
| -rwxr-xr-x | tools/net/ynl/pyynl/ynl_gen_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py index 0d930c17f963..9613a6135003 100755 --- a/tools/net/ynl/pyynl/ynl_gen_c.py +++ b/tools/net/ynl/pyynl/ynl_gen_c.py @@ -2909,7 +2909,7 @@ def main(): cw.p(f'#include "{hdr_file}"') cw.p('#include "ynl.h"') headers = [] - for definition in parsed['definitions']: + for definition in parsed['definitions'] + parsed['attribute-sets']: if 'header' in definition: headers.append(definition['header']) if args.mode == 'user': |
