From: Joe Perches Date: Wed, 9 Sep 2015 22:37:55 +0000 (-0700) Subject: checkpatch: add __pmem to $Sparse annotations X-Git-Tag: v4.1.12-92~18^2^2~92 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9c119a9f04d174af32ca1038eb60f2df8fa828fa;p=users%2Fjedix%2Flinux-maple.git checkpatch: add __pmem to $Sparse annotations 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 Reviewed-by: Ross Zwisler Acked-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 54507b5183cc4f8e4f1a58a312e1f30c130658b7) Signed-off-by: Dan Duval --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c5ec977b9c378..8048ff4ba6de1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -257,6 +257,7 @@ our $Sparse = qr{ __kernel| __force| __iomem| + __pmem| __must_check| __init_refok| __kprobes|