]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
checkpatch: add __pmem to $Sparse annotations
authorJoe Perches <joe@perches.com>
Wed, 9 Sep 2015 22:37:55 +0000 (15:37 -0700)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:52 +0000 (12:19 -0500)
Orabug: 22913653

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>
(cherry picked from commit 54507b5183cc4f8e4f1a58a312e1f30c130658b7)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
scripts/checkpatch.pl

index c5ec977b9c3786097b214e1c835efd8fa337c173..8048ff4ba6de15e28ce8bbac38be1558bdba7df3 100755 (executable)
@@ -257,6 +257,7 @@ our $Sparse = qr{
                        __kernel|
                        __force|
                        __iomem|
+                       __pmem|
                        __must_check|
                        __init_refok|
                        __kprobes|