Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Randy Dunlap and committed by
Linus Torvalds
32ab8f97 d2dc1f4a

+1 -1
+1 -1
scripts/kernel-doc
··· 1403 1403 my $members = $3; 1404 1404 1405 1405 # ignore embedded structs or unions 1406 - $members =~ s/{.*?}//g; 1406 + $members =~ s/{.*}//g; 1407 1407 1408 1408 # ignore members marked private: 1409 1409 $members =~ s/\/\*.*?private:.*?public:.*?\*\///gos;