mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +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:
|
||
|---|---|---|
| .. | ||
| kdoc-test-schema.yaml | ||
| kdoc-test.yaml | ||
| run.py | ||
| test_cmatch.py | ||
| test_kdoc_parser.py | ||
| test_kdoc_test_schema.py | ||
| test_tokenizer.py | ||