summaryrefslogtreecommitdiff
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-11-08 20:57:42 +0300
committerTony Lindgren <tony@atomide.com>2018-11-08 20:57:42 +0300
commit07fa3fa2572f2dee85beb8137f90ccf33d7206af (patch)
tree0cec1fca7425cd6c423c53c4581ea2a9776ed411 /scripts/kernel-doc
parent4ed0dfe3cf39a97cd0ed532212b5e55e9752fe3f (diff)
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
downloadlinux-07fa3fa2572f2dee85beb8137f90ccf33d7206af.tar.xz
Merge tag 'v4.20-rc1' into omap-for-v4.21/dt-ti-sysc
Linux 4.20-rc1
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 8f0f508a78e9..ffbe901a37b5 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1904,13 +1904,13 @@ sub process_name($$) {
++$warnings;
}
- if ($identifier =~ m/^struct/) {
+ if ($identifier =~ m/^struct\b/) {
$decl_type = 'struct';
- } elsif ($identifier =~ m/^union/) {
+ } elsif ($identifier =~ m/^union\b/) {
$decl_type = 'union';
- } elsif ($identifier =~ m/^enum/) {
+ } elsif ($identifier =~ m/^enum\b/) {
$decl_type = 'enum';
- } elsif ($identifier =~ m/^typedef/) {
+ } elsif ($identifier =~ m/^typedef\b/) {
$decl_type = 'typedef';
} else {
$decl_type = 'function';