kernel-doc: ignore case when stripping attributes
[~shefty/rdma-dev.git] / scripts / kernel-doc
index 102e1235fd5ced3f83f18a9a5ecd2306b31e087b..a68240c188f32096497c2a090e626a8ab220fdb8 100755 (executable)
@@ -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]