summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft2009-01-06 23:41:18 +0100
committerLinus Torvalds2009-01-07 00:59:15 +0100
commit5fe3af119bed58d240e2097fe76f322ab51902d7 (patch)
tree6b0c8b5f9bf1fc78d0c3f1208da641031a51df4b /scripts/checkpatch.pl
parentcheckpatch: structure member assignments are not complex (diff)
downloadkernel-qcow2-linux-5fe3af119bed58d240e2097fe76f322ab51902d7.tar.gz
kernel-qcow2-linux-5fe3af119bed58d240e2097fe76f322ab51902d7.tar.xz
kernel-qcow2-linux-5fe3af119bed58d240e2097fe76f322ab51902d7.zip
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{
__(?:mem|cpu|dev|)(?:initdata|init)|
____cacheline_aligned|
____cacheline_aligned_in_smp|
- ____cacheline_internodealigned_in_smp
+ ____cacheline_internodealigned_in_smp|
+ __weak
}x;
our $Modifier;
our $Inline = qr{inline|__always_inline|noinline};