Without this patch we get warnings for named variable arguments. warning: No description found for parameter '...' warning: Excess function parameter 'args' description in 'alloc_ordered_workqueue'
Unified · Split
| @@ -204,6 +204,7 @@ EOF · 203 unmodified lines | |||
| 204 | 204 | ||
| 205 | ## init lots of data | 205 | ## init lots of data |
| 206 | 206 | ||
| 207 | |||
| 207 | my $errors = 0; | 208 | my $errors = 0; |
| 208 | my $warnings = 0; | 209 | my $warnings = 0; |
| 209 | my $anon_struct_union = 0; | 210 | my $anon_struct_union = 0; |
| @@ -211,7 +212,7 @@ my $anon_struct_union = 0; · 1 unmodified line | |||
| 211 | # match expressions used to find embedded type information | 212 | # match expressions used to find embedded type information |
| 212 | my $type_constant = '\%([-_\w]+)'; | 213 | my $type_constant = '\%([-_\w]+)'; |
| 213 | my $type_func = '(\w+)\(\)'; | 214 | my $type_func = '(\w+)\(\)'; |
| 214 | my $type_param = '\@(\w+)'; | 215 | my $type_param = '\@(\w+(\.\.\.)?)'; |
| 215 | my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params | 216 | my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params |
| 216 | my $type_struct = '\&((struct\s*)*[_\w]+)'; | 217 | my $type_struct = '\&((struct\s*)*[_\w]+)'; |
| 217 | my $type_struct_xml = '\\&((struct\s*)*[_\w]+)'; | 218 | my $type_struct_xml = '\\&((struct\s*)*[_\w]+)'; |
| @@ -2353,7 +2354,10 @@ sub push_parameter($$$) { · 2135 unmodified lines | |||
| 2353 | 2354 | ||
| 2354 | if ($type eq "" && $param =~ /\.\.\.$/) | 2355 | if ($type eq "" && $param =~ /\.\.\.$/) |
| 2355 | { | 2356 | { |
| 2356 | $param = "..."; | 2357 | if (!$param =~ /\w\.\.\.$/) { |
| 2358 | # handles unnamed variable parameters | ||
| 2359 | $param = "..."; | ||
| 2360 | } | ||
| 2357 | if (!defined $parameterdescs{$param} || $parameterdescs{$param} eq "") { | 2361 | if (!defined $parameterdescs{$param} || $parameterdescs{$param} eq "") { |
| 2358 | $parameterdescs{$param} = "variable arguments"; | 2362 | $parameterdescs{$param} = "variable arguments"; |
| 2359 | } | 2363 | } |