aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2009-01-06 17:41:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:15 -0500
commit5fe3af119bed58d240e2097fe76f322ab51902d7 (patch)
tree6b0c8b5f9bf1fc78d0c3f1208da641031a51df4b /scripts/checkpatch.pl
parent383099fd636deacf698b91b4c96d0d6d01e6dc79 (diff)
checkpatch: __weak is an official attribute
Add __weak as an official attribute. This tends to be used in a location where the automated attribute detector misses it. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9208ec64af9d..c79abb41793d 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -116,7 +116,8 @@ our $Attribute = qr{
116 __(?:mem|cpu|dev|)(?:initdata|init)| 116 __(?:mem|cpu|dev|)(?:initdata|init)|
117 ____cacheline_aligned| 117 ____cacheline_aligned|
118 ____cacheline_aligned_in_smp| 118 ____cacheline_aligned_in_smp|
119 ____cacheline_internodealigned_in_smp 119 ____cacheline_internodealigned_in_smp|
120 __weak
120 }x; 121 }x;
121our $Modifier; 122our $Modifier;
122our $Inline = qr{inline|__always_inline|noinline}; 123our $Inline = qr{inline|__always_inline|noinline};