Skip to content

Commit

Permalink
kernel-doc: ignore kmemcheck_bitfield_begin/end
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
rddunlap authored and sravnborg committed Jun 20, 2009
1 parent ac6ca5c commit b2fd6db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,8 @@ sub dump_enum($$) {
}

}
# strip kmemcheck_bitfield_{begin,end}.*;
$members =~ s/kmemcheck_bitfield_.*?;//gos;

output_declaration($declaration_name,
'enum',
Expand Down

0 comments on commit b2fd6db

Please sign in to comment.