diff options
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index fcdfb245a575..102e1235fd5c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -1454,6 +1454,8 @@ sub dump_enum($$) { | |||
1454 | my $file = shift; | 1454 | my $file = shift; |
1455 | 1455 | ||
1456 | $x =~ s@/\*.*?\*/@@gos; # strip comments. | 1456 | $x =~ s@/\*.*?\*/@@gos; # strip comments. |
1457 | $x =~ s/^#\s*define\s+.*$//; # strip #define macros inside enums | ||
1458 | |||
1457 | if ($x =~ /enum\s+(\w+)\s*{(.*)}/) { | 1459 | if ($x =~ /enum\s+(\w+)\s*{(.*)}/) { |
1458 | $declaration_name = $1; | 1460 | $declaration_name = $1; |
1459 | my $members = $2; | 1461 | my $members = $2; |