summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-10-16 07:02:18 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 20:21:35 +0200
commit24e1d81acd447c3a7ec9eb90f24c00edc5a4b09f (patch)
treee6b199e4a2a4f88329f02bd3919eb25bc1c8dea3 /scripts/checkpatch.pl
parentcheckpatch: add tests for the attribute matcher (diff)
downloadlinux-24e1d81acd447c3a7ec9eb90f24c00edc5a4b09f.tar.xz
linux-24e1d81acd447c3a7ec9eb90f24c00edc5a4b09f.zip
checkpatch: ____cacheline_aligned et al are modifiers
Add the cacheline alignment modifiers to the attribute lists. 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.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1c032b1fa9eb..303c3634198b 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -113,7 +113,10 @@ our $Attribute = qr{
const|
__read_mostly|
__kprobes|
- __(?:mem|cpu|dev|)(?:initdata|init)
+ __(?:mem|cpu|dev|)(?:initdata|init)|
+ ____cacheline_aligned|
+ ____cacheline_aligned_in_smp|
+ ____cacheline_internodealigned_in_smp
}x;
our $Modifier;
our $Inline = qr{inline|__always_inline|noinline};