Skip to content

Commit fe658f9

Browse files
steffen-maiertorvalds
authored andcommitted
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 frank-w#71: FILE: drivers/s390/scsi/zfcp_fsf.c:422: + struct hlist_node *tmp; + HLIST_HEAD(remove_queue); Link: http://lkml.kernel.org/r/20170614133512.89425-1-maier@linux.vnet.ibm.com Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> Acked-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 628f91a commit fe658f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ sub build_types {
733733

734734
our $declaration_macros = qr{(?x:
735735
(?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
736-
(?:$Storage\s+)?LIST_HEAD\s*\(|
736+
(?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(|
737737
(?:$Storage\s+)?${Type}\s+uninitialized_var\s*\(
738738
)};
739739

0 commit comments

Comments
 (0)