* [PATCH] kernel-doc: allow unnamed bit-fields
@ 2008-05-16 22:45 Randy Dunlap
2008-05-19 18:12 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-05-16 22:45 UTC (permalink / raw)
To: lkml; +Cc: akpm, samr
From: Randy Dunlap <randy.dunlap@oracle.com>
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>
---
scripts/kernel-doc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- next-20080516.orig/scripts/kernel-doc
+++ next-20080516/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);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] kernel-doc: allow unnamed bit-fields
2008-05-16 22:45 [PATCH] kernel-doc: allow unnamed bit-fields Randy Dunlap
@ 2008-05-19 18:12 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-05-19 18:12 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, akpm
On Fri, May 16, 2008 at 03:45:52PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> 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>
Added to kbuild-fixes.
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-19 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16 22:45 [PATCH] kernel-doc: allow unnamed bit-fields Randy Dunlap
2008-05-19 18:12 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®