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>
This commit is contained in:
Andy Whitcroft 2009-01-06 14:41:18 -08:00 committed by Linus Torvalds
parent 383099fd63
commit 5fe3af119b

View file

@ -116,7 +116,8 @@ our $Attribute = qr{
__(?:mem|cpu|dev|)(?:initdata|init)| __(?:mem|cpu|dev|)(?:initdata|init)|
____cacheline_aligned| ____cacheline_aligned|
____cacheline_aligned_in_smp| ____cacheline_aligned_in_smp|
____cacheline_internodealigned_in_smp ____cacheline_internodealigned_in_smp|
__weak
}x; }x;
our $Modifier; our $Modifier;
our $Inline = qr{inline|__always_inline|noinline}; our $Inline = qr{inline|__always_inline|noinline};