Skip to content

Commit a94657d

Browse files
committed
Add header in attribute-sets
The patch adds header specified in attribute-set. Signed-off-by: Zibo Gong <gongzib@outlook.com>
1 parent c24d866 commit a94657d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ynl-gen-cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2408,7 +2408,7 @@ def main():
24082408
cw.p("#include <array>")
24092409
cw.nl()
24102410
headers = {parsed.uapi_header}
2411-
for definition in parsed["definitions"]:
2411+
for definition in parsed["definitions"] + parsed["attribute-sets"]:
24122412
if "header" in definition:
24132413
headers.add(definition["header"])
24142414
for one in sorted(headers):

0 commit comments

Comments
 (0)