Received: by 10.213.65.68 with SMTP id h4csp3881420imn; Tue, 3 Apr 2018 12:18:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx48nznjQxD+tOzt0sFYmX7++GyxPWYVAJl+AOp4e0MlatuDU1mQAdXV2uFrrAtq4JzyBNGeX X-Received: by 10.98.171.7 with SMTP id p7mr11566342pff.215.1522783127701; Tue, 03 Apr 2018 12:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522783127; cv=none; d=google.com; s=arc-20160816; b=Nenpa2v2b9P0WWL/+4jhvuMONUIBwm58NAdqr+lJwIy0f6lF6YB/7zbKglnUmBu2hK GRjoAgJs2zD/z04OIfWHlz4Iy9xKJRi1KHr4aVjyVlj4QBQo31uBLxDoQ3JYogsqZBz2 5MA718p5W++TuDvhvvu1PGZdR9OlcQAEKjylR0Fp4AnYxqPzn7/mGe0AP8bVVRf0HOP7 APQuq4q2q2wBeiTeYFV+KYAHkvufXOEw1LaXQNVxLQ6awna+aBLH+h5bHE8/psKY1mpv ijitoEoZy4ZWJSJLVM6l+iTqNee//KB1WrRaFfUND5U1IGaMbLdQxIrpOboe7rdTMiG0 ppTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=xfHBtMStY+15TCcsFFHv9rusz4ddvBbZguoQyz7Fei4=; b=rMQ06aBMfHuE5GY0bN+4svku8zjFOnGjH+07CniboC5qI6w17sQw/KFWLaLjva50yF a+4MAM1s4VuZzrHKWPlUkZNsMrJAUPYRDxn2IT2xGpmuu5zK+B6VSjlpBUZ+ziUxZDZk CVJTZC+eW7sRaMgDCJeNm/b+C1B45/h76ORCyTehpwWq2GCjLiPKUcAmS+Pd7upGrZNw NvXnMC7O9NUU8aNgKW+TxT0QvpWGLvV47af8Sv86P88U7anXre0mkhKWaLyyM6oObYPj yiSmrljggVcHdgOj0gDeD/DpiMd1k3in0OoNS274lMYNn2aobJ/bUrYk1vmVOcXSxVyN wc7g== 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 14-v6si2127082ple.450.2018.04.03.12.18.33; Tue, 03 Apr 2018 12:18:47 -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 S1753049AbeDCTRW (ORCPT + 99 others); Tue, 3 Apr 2018 15:17:22 -0400 Received: from mout.gmx.net ([212.227.17.21]:60503 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752675AbeDCTRT (ORCPT ); Tue, 3 Apr 2018 15:17:19 -0400 Received: from LPT2.fritz.box ([62.143.246.157]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LtZfc-1eMNSA2VQi-010vTJ; Tue, 03 Apr 2018 21:17:14 +0200 From: Heinrich Schuchardt To: Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, Heinrich Schuchardt Subject: [PATCH 1/1] checkpatch: allow space between colon and bracket Date: Tue, 3 Apr 2018 21:16:55 +0200 Message-Id: <20180403191655.23700-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180403190214.23082-1-xypron.glpk@gmx.de> References: <20180403190214.23082-1-xypron.glpk@gmx.de> X-Provags-ID: V03:K0:0vYSF0fikT1yl123naZKs91yBnbCaOabmypzU2RI9KlU+X84P3F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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow a space between a colon and subsequent opening bracket. This sequence may occur in inline assembler statements like asm( "ldr %[out], [%[in]]\n\t" : [out] "=r" (ret) : [in] "r" (addr) ); Signed-off-by: Heinrich Schuchardt --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d2464002bb40..2cbab86e6d4c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4083,7 +4083,7 @@ sub process { my ($where, $prefix) = ($-[1], $1); if ($prefix !~ /$Type\s+$/ && ($where != 0 || $prefix !~ /^.\s+$/) && - $prefix !~ /[{,]\s+$/) { + $prefix !~ /[{,:]\s+$/) { if (ERROR("BRACKET_SPACE", "space prohibited before open square bracket '['\n" . $herecurr) && $fix) { -- 2.16.3