diff options
author | Joe Perches <joe@perches.com> | 2015-09-09 18:37:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 16:29:01 -0400 |
commit | 54507b5183cc4f8e4f1a58a312e1f30c130658b7 (patch) | |
tree | 9ea9add7a2f47c53eb71d063fbc6d7b7cbc8ee4e | |
parent | 4e5d56bdf892e18832a6540b63ebf709966bce2a (diff) |
checkpatch: add __pmem to $Sparse annotations
commit 61031952f4c8 ("arch, x86: pmem api for ensuring durability of
persistent memory updates") added a new __pmem annotation for sparse
verification. Add __pmem to the $Sparse variable so checkpatch can
appropriately ignore uses of this attribute too.
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ba47dab3d091..97ee377c4f51 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -264,6 +264,7 @@ our $Sparse = qr{ | |||
264 | __kernel| | 264 | __kernel| |
265 | __force| | 265 | __force| |
266 | __iomem| | 266 | __iomem| |
267 | __pmem| | ||
267 | __must_check| | 268 | __must_check| |
268 | __init_refok| | 269 | __init_refok| |
269 | __kprobes| | 270 | __kprobes| |