checkpatch: Add __pmem to $Sparse annotations
Joe Perches
maintainerPATCH 1/1 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.
--- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+)
scripts/checkpatch.pl +1 -0
@@ -264,6 +264,7 @@ our $Sparse = qr{ __kernel| __force| __iomem| + __pmem| __must_check| __init_refok| __kprobes|
Quoted 6 lines · Joe Perches
commit
61031952f4c8("arch, x86: pmem api for ensuring durability of persistent memory updates") added a new__pmemannotation for sparse verification. Add__pmemto the $Sparse variable so checkpatch can appropriately ignore uses of this attribute too.Signed-off-by Joe Perches <[email protected]>
Andy Whitcroft
maintainerPATCH 1/1 checkpatch: Add __pmem to $Sparse annotations
In reply to Joe PerchesQuoted 15 lines · Joe Perches
commit
61031952f4c8("arch, x86: pmem api for ensuring durability of persistent memory updates") added a new__pmemannotation for sparse verification. Add__pmemto the $Sparse variable so checkpatch can appropriately ignore uses of this attribute too.Signed-off-by Joe Perches <[email protected]>--- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+)scripts/checkpatch.pl +0
-0
scripts/checkpatch.pl our $Sparse = qr{ · line 270
Quoted 7 lines
scripts/checkpatch.pl +1
-0@@ -264,6 +264,7 @@ our $Sparse = qr{ __kernel| __force| __iomem| + __pmem| __must_check| __init_refok| __kprobes|
-apw