summaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-10-05 09:03:48 -0300
committerJonathan Corbet <corbet@lwn.net>2015-10-11 15:37:37 -0600
commit0d8c39e6c6dd97fc7fc40e93b44d76bb6dc4d4e4 (patch)
tree7d40c88dbe4b7c0cf2416a948002b65016c52e50 /scripts/kernel-doc
parent1c35c283f21f36a295da4b286d7e18941b13fa0e (diff)
downloadlinux-stable-0d8c39e6c6dd97fc7fc40e93b44d76bb6dc4d4e4.tar.gz
linux-stable-0d8c39e6c6dd97fc7fc40e93b44d76bb6dc4d4e4.tar.bz2
linux-stable-0d8c39e6c6dd97fc7fc40e93b44d76bb6dc4d4e4.zip
DocBook: Fix kernel-doc to be case-insensitive for private:
On some places, people could use Private: to tag the private fields of an struct. So, be case-insensitive when parsing "private:" meta-tag. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 25029bcaf583..80428be3411a 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1805,8 +1805,8 @@ sub dump_struct($$) {
$nested = $1;
# ignore members marked private:
- $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gos;
- $members =~ s/\/\*\s*private:.*//gos;
+ $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi;
+ $members =~ s/\/\*\s*private:.*//gosi;
# strip comments:
$members =~ s/\/\*.*?\*\///gos;
$nested =~ s/\/\*.*?\*\///gos;