public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel-doc: ignore kmemcheck_bitfield_begin/end
@ 2009-06-18  0:36 Randy Dunlap
  2009-06-20 11:38 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2009-06-18  0:36 UTC (permalink / raw)
  To: Linux Kernel Mailing List, samr, Andrew Morton

From: Randy Dunlap <randy.dunlap@oracle.com>

Teach kernel-doc to ignore kmemcheck_bitfield_{begin,end} sugar
so that it won't generate warnings like this:

Warning(include/net/sock.h:297): No description found for parameter 'kmemcheck_bitfield_begin(flags)'
Warning(include/net/sock.h:297): No description found for parameter 'kmemcheck_bitfield_end(flags)'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 scripts/kernel-doc |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.30-git11.orig/scripts/kernel-doc
+++ linux-2.6.30-git11/scripts/kernel-doc
@@ -1468,6 +1468,8 @@ sub dump_enum($$) {
 	    }
 
 	}
+	# strip kmemcheck_bitfield_{begin,end}.*;
+	$members =~ s/kmemcheck_bitfield_.*?;//gos;
 
 	output_declaration($declaration_name,
 			   'enum',


-- 
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernel-doc: ignore kmemcheck_bitfield_begin/end
  2009-06-18  0:36 [PATCH] kernel-doc: ignore kmemcheck_bitfield_begin/end Randy Dunlap
@ 2009-06-20 11:38 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2009-06-20 11:38 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linux Kernel Mailing List, Andrew Morton

On Wed, Jun 17, 2009 at 05:36:15PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Teach kernel-doc to ignore kmemcheck_bitfield_{begin,end} sugar
> so that it won't generate warnings like this:
> 
> Warning(include/net/sock.h:297): No description found for parameter 'kmemcheck_bitfield_begin(flags)'
> Warning(include/net/sock.h:297): No description found for parameter 'kmemcheck_bitfield_end(flags)'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

Applied.

	Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-20 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18  0:36 [PATCH] kernel-doc: ignore kmemcheck_bitfield_begin/end Randy Dunlap
2009-06-20 11:38 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox