Skip to contentSkip to conversation

checkpatch: [HLP]LIST_HEAD is also declaration

PATCH New [email protected] 1 participant 1 message Jul 10, 2017 Checkpatch

lore
Share & tools
lore
#0 lore raw

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);

---

 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
diff -puN scripts/checkpatch.pl~checkpatch-list_head-is-also-declaration scripts/checkpatch.pl
@@ -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*\(
 )};
 

_