Skip to contentSkip to conversation

kernel-doc: ignore case when stripping attributes

PATCH New Randy Dunlap 1 participant 1 message Sep 11, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-doc: ignore case when stripping attributes

From: Johannes Berg <[email protected]>

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.

---

 scripts/kernel-doc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kernel-doc +1 -1
@@ -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]