* [PATCH 2/2] scripts/kernel-doc: handle/ignore __aligned
@ 2010-03-16 17:43 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2010-03-16 17:43 UTC (permalink / raw)
To: lkml; +Cc: torvalds
From: Randy Dunlap <randy.dunlap@oracle.com>
scripts/kernel-doc erroneously says:
Warning(include/linux/skbuff.h:410): Excess struct/union/enum/typedef member 'cb' description in 'sk_buff'
on this line in struct sk_buff:
char cb[48] __aligned(8);
due to treating the last field as the struct member name, so
teach kernel-doc to ignore __aligned(x) in structs.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
scripts/kernel-doc | 2 ++
1 file changed, 2 insertions(+)
--- linux-2.6.33-git13.orig/scripts/kernel-doc
+++ linux-2.6.33-git13/scripts/kernel-doc
@@ -1424,6 +1424,8 @@ sub dump_struct($$) {
$nested =~ s/\/\*.*?\*\///gos;
# strip kmemcheck_bitfield_{begin,end}.*;
$members =~ s/kmemcheck_bitfield_.*?;//gos;
+ # strip attributes
+ $members =~ s/__aligned\s*\(\d+\)//gos;
create_parameterlist($members, ';', $file);
check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-16 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16 17:43 [PATCH 2/2] scripts/kernel-doc: handle/ignore __aligned Randy Dunlap
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®