* [PATCH] kernel-doc: ignore case when stripping attributes
@ 2010-09-11 22:55 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2010-09-11 22:55 UTC (permalink / raw)
To: lkml; +Cc: torvalds, Johannes Berg
From: Johannes Berg <johannes.berg@intel.com>
There are valid attributes that could have upper
case letters, but we still want to remove, like
for example
__attribute__((aligned(NETDEV_ALIGN)))
as encountered in the wireless code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
scripts/kernel-doc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lnx-2636-rc2-docs.orig/scripts/kernel-doc
+++ lnx-2636-rc2-docs/scripts/kernel-doc
@@ -1679,7 +1679,7 @@ sub check_sections($$$$$$) {
foreach $px (0 .. $#prms) {
$prm_clean = $prms[$px];
$prm_clean =~ s/\[.*\]//;
- $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//;
+ $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
# ignore array size in a parameter string;
# however, the original param string may contain
# spaces, e.g.: addr[6 + 2]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-11 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-11 22:55 [PATCH] kernel-doc: ignore case when stripping attributes 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®