kernel-doc: skip nested struct/union cleanly
Fix handling of nested structs or unions. The regex to strip (eliminate) nested structs or unions was limited to only 0 or 1 matches. This can cause an uneven number of left/right braces to be stripped, which causes this: Warning(linux-2.6.27-rc1-git2//include/net/mac80211.h:336): No description found for parameter '}' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d2dc1f4adb
commit
32ab8f97dd
|
@ -1403,7 +1403,7 @@ sub dump_struct($$) {
|
|||
my $members = $3;
|
||||
|
||||
# ignore embedded structs or unions
|
||||
$members =~ s/{.*?}//g;
|
||||
$members =~ s/{.*}//g;
|
||||
|
||||
# ignore members marked private:
|
||||
$members =~ s/\/\*.*?private:.*?public:.*?\*\///gos;
|
||||
|
|
Loading…
Reference in New Issue