Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp6060663ybl; Tue, 27 Aug 2019 13:50:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqypkckQWpFtUhQjwvc0NIN34tYC+t5QxYbVt72E4nj2+K+BYoPc/mU4Y8tNhc4/rq4iHeBh X-Received: by 2002:a63:e213:: with SMTP id q19mr332091pgh.180.1566939050678; Tue, 27 Aug 2019 13:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566939050; cv=none; d=google.com; s=arc-20160816; b=JgFtvRrSOyn1lrjGc8XxHwaBKvlIClSjb7JEpQ/dwKQbPdg8yqQNo7b9QuYsu/KJ57 N+BRLlN+KF25VM4KrB4hYTWEsIWRMfX45iSRCct+RQAD22srUGLjOt69EcT1r3Cl3F2x Z728f53FHT2r375fPK9k+pRGMrURXpdc+nuN4gX+NpgT0ynOfkeAo3WhW7qO69bynORa EuZiYUxY2X30SFmfbbVhPWgUJz12P1cYpOz1XVG25ANf/pXQFWUgrafQhNQegJgLR3aq 03LRg4F9e8IL5ZyIjg8mTjSmCsKtFHTHkoadV2WXy1qelBMoNTfe9pO8MaCpl3W5C7FZ JlVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=YvJhlNxOWlKLcSQV0qxSjSvmfB8+jj1BZM4via1X/xc=; b=PVOww701hz+I5OHXePPdYoWHVKEtxBnp0LLSCKhkh1iqUIp44OhWIhxJLdGITX4AwN 5MD6NmigqHyFsFOU7jR6QebLl6bf5u3nBVkUmylFWKfMNCSzTFkMUKff7yu0MDzn6XlC T6Sump+eZrNyP+MSWuVFhfIA7MRoSgq9biq1TqAGlY1nemO5GiGf4KPCGqBWkyBaXeod uB0ClXaeMxCLq+ENUOzJzxu89lZgoxusGzxxWfgR23f2fujLmvyLISbOdE5m1Yfs+dkZ BVnSnX8UvfDVlFx6QRIY+5UeYq0zZOQP1MNKi5LX3YhKhMjpvn1oP8h3hY95pCn4cI2e kKJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si358075pgq.473.2019.08.27.13.50.35; Tue, 27 Aug 2019 13:50:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730495AbfH0UtN (ORCPT + 99 others); Tue, 27 Aug 2019 16:49:13 -0400 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:49628 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726584AbfH0UtN (ORCPT ); Tue, 27 Aug 2019 16:49:13 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 1EB7B18224508; Tue, 27 Aug 2019 20:49:12 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3865:3872:3874:5007:10004:10400:10848:11658:11914:12297:12555:12760:13069:13141:13230:13311:13357:13439:14181:14394:14659:14721:21080:21451:21627:30054:30064,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:29,LUA_SUMMARY:none X-HE-Tag: woman74_8a5aad7e28c2f X-Filterd-Recvd-Size: 1713 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Tue, 27 Aug 2019 20:49:10 +0000 (UTC) Message-ID: Subject: [PATCH] checkpatch: Allow consecutive close braces From: Joe Perches To: Jeff Kirsher , Forrest Fleming , Andrew Morton Cc: "David S. Miller" , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 27 Aug 2019 13:49:09 -0700 In-Reply-To: References: <20190823191421.3318-1-ffleming@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org checkpatch allows consecutive open braces, so it should also allow consecutive close braces. Signed-off-by: Joe Perches Acked-by: Jeff Kirsher --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 287fe73688f0..ac5e0f06e1af 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4687,7 +4687,7 @@ sub process { # closing brace should have a space following it when it has anything # on the line - if ($line =~ /}(?!(?:,|;|\)))\S/) { + if ($line =~ /}(?!(?:,|;|\)|\}))\S/) { if (ERROR("SPACING", "space required after that close brace '}'\n" . $herecurr) && $fix) {