提交 7b97887e 编写于 作者: R Randy Dunlap 提交者: Sam Ravnborg

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: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 aab34ac8
...@@ -1556,7 +1556,9 @@ sub create_parameterlist($$$) { ...@@ -1556,7 +1556,9 @@ sub create_parameterlist($$$) {
push_parameter($2, "$type $1", $file); push_parameter($2, "$type $1", $file);
} }
elsif ($param =~ m/(.*?):(\d+)/) { elsif ($param =~ m/(.*?):(\d+)/) {
push_parameter($1, "$type:$2", $file) if ($type ne "") { # skip unnamed bit-fields
push_parameter($1, "$type:$2", $file)
}
} }
else { else {
push_parameter($param, $type, $file); push_parameter($param, $type, $file);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册