checkpatch: [HLP]LIST_HEAD is also declaration
PATCH 99/115 checkpatch: [HLP]LIST_HEAD is also declaration
From: Steffen Maier <[email protected]>
Subject: checkpatch: [HLP]LIST_HEAD is also declaration
Fixes the following false warning among others for LLIST_HEAD and PLIST_HEAD:
WARNING: Missing a blank line after declarations
#71: FILE: drivers/s390/scsi/zfcp_fsf.c:422:
+ struct hlist_node *tmp;
+ HLIST_HEAD(remove_queue);Signed-off-by Steffen Maier <[email protected]>
Acked-by Joe Perches <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-list_head-is-also-declaration +1 -1
@@ -733,7 +733,7 @@ our $FuncArg = qr{$Typecast{0,1}($LvalOr our $declaration_macros = qr{(?x: (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(| - (?:$Storage\s+)?LIST_HEAD\s*\(| + (?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(| (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( )};
_