mirror of
https://github.com/torvalds/linux.git
synced 2026-10-25 08:16:03 +01:00
kernel-doc fails to parse struct declarations wrapped in
context_lock_struct(), e.g. struct debugfs_cancellation:
include/linux/debugfs.h:245 ... error: Cannot parse struct or union!
Add a struct transform that expands context_lock_struct() to a plain
struct declaration, and apply the struct transforms to the whole
declaration before split_struct_proto(), matching what dump_var() and
dump_function() already do for their prototypes. The member-only
transform in dump_struct() is then redundant.
Add a regression test for the debugfs_cancellation declaration.
Fixes:
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| c_lex.py | ||
| enrich_formatter.py | ||
| kdoc_files.py | ||
| kdoc_item.py | ||
| kdoc_output.py | ||
| kdoc_parser.py | ||
| kdoc_re.py | ||
| kdoc_yaml_file.py | ||
| latex_fonts.py | ||
| parse_data_structs.py | ||
| python_version.py | ||
| xforms_lists.py | ||