Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kernel-doc: ignore case when stripping attributes

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Johannes Berg and committed by
Linus Torvalds
1f3a6688 84e1d836

+1 -1
+1 -1
scripts/kernel-doc
··· 1679 1679 foreach $px (0 .. $#prms) { 1680 1680 $prm_clean = $prms[$px]; 1681 1681 $prm_clean =~ s/\[.*\]//; 1682 - $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//; 1682 + $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i; 1683 1683 # ignore array size in a parameter string; 1684 1684 # however, the original param string may contain 1685 1685 # spaces, e.g.: addr[6 + 2]