Skip to content

Commit 7b97887

Browse files
rddunlapsravnborg
authored andcommitted
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>
1 parent aab34ac commit 7b97887

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/kernel-doc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,9 @@ sub create_parameterlist($$$) {
15561556
push_parameter($2, "$type $1", $file);
15571557
}
15581558
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+
}
15601562
}
15611563
else {
15621564
push_parameter($param, $type, $file);

0 commit comments

Comments
 (0)