diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-05-16 18:45:52 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-05-19 14:12:40 -0400 |
commit | 7b97887eab6c35d23f2e4680bd5e285415068f35 (patch) | |
tree | 52b3e3f346f7e797f0422d8399da2e0cdae1e43b | |
parent | aab34ac8582303ef57b792710fc5dd5991477475 (diff) |
kernel-doc: allow unnamed bit-fields
Allow for unnamed bit-fields and skip them instead of printing an
erroneous warning message for them, such as:
Warning(include/asm-s390/cio.h:103): No description found for parameter 'u32'
which contains:
struct tm_scsw {
u32 :1;
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rwxr-xr-x | scripts/kernel-doc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 83cee18a02e9..88e3934a8b8c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -1556,7 +1556,9 @@ sub create_parameterlist($$$) { | |||
1556 | push_parameter($2, "$type $1", $file); | 1556 | push_parameter($2, "$type $1", $file); |
1557 | } | 1557 | } |
1558 | elsif ($param =~ m/(.*?):(\d+)/) { | 1558 | elsif ($param =~ m/(.*?):(\d+)/) { |
1559 | push_parameter($1, "$type:$2", $file) | 1559 | if ($type ne "") { # skip unnamed bit-fields |
1560 | push_parameter($1, "$type:$2", $file) | ||
1561 | } | ||
1560 | } | 1562 | } |
1561 | else { | 1563 | else { |
1562 | push_parameter($param, $type, $file); | 1564 | push_parameter($param, $type, $file); |