diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-05-16 15:45:52 -0700 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-05-19 20:12:40 +0200 |
commit | 7b97887eab6c35d23f2e4680bd5e285415068f35 (patch) | |
tree | 52b3e3f346f7e797f0422d8399da2e0cdae1e43b /scripts/kernel-doc | |
parent | aab34ac8582303ef57b792710fc5dd5991477475 (diff) | |
download | kernel_goldelico_gta04-7b97887eab6c35d23f2e4680bd5e285415068f35.zip kernel_goldelico_gta04-7b97887eab6c35d23f2e4680bd5e285415068f35.tar.gz kernel_goldelico_gta04-7b97887eab6c35d23f2e4680bd5e285415068f35.tar.bz2 |
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>
Diffstat (limited to 'scripts/kernel-doc')
-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 83cee18..88e3934 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1556,7 +1556,9 @@ sub create_parameterlist($$$) { push_parameter($2, "$type $1", $file); } elsif ($param =~ m/(.*?):(\d+)/) { - push_parameter($1, "$type:$2", $file) + if ($type ne "") { # skip unnamed bit-fields + push_parameter($1, "$type:$2", $file) + } } else { push_parameter($param, $type, $file); |