diff options
author | Andy Whitcroft <apw@shadowen.org> | 2009-01-06 23:41:18 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-07 00:59:15 +0100 |
commit | 5fe3af119bed58d240e2097fe76f322ab51902d7 (patch) | |
tree | 6b0c8b5f9bf1fc78d0c3f1208da641031a51df4b /scripts | |
parent | checkpatch: structure member assignments are not complex (diff) | |
download | linux-5fe3af119bed58d240e2097fe76f322ab51902d7.tar.xz 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')
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
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}; |