Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17398C388F9 for ; Mon, 16 Nov 2020 23:02:48 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49A022222C for ; Mon, 16 Nov 2020 23:02:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49A022222C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B6969867A3; Mon, 16 Nov 2020 23:02:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bxa2IfenHgiG; Mon, 16 Nov 2020 23:02:45 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 763F286799; Mon, 16 Nov 2020 23:02:45 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 58483C0800; Mon, 16 Nov 2020 23:02:45 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 609D1C07FF for ; Mon, 16 Nov 2020 23:02:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 52D9187155 for ; Mon, 16 Nov 2020 23:02:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HaFwa1wMz8bt for ; Mon, 16 Nov 2020 23:02:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.hostedemail.com (smtprelay0163.hostedemail.com [216.40.44.163]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1B84B87153 for ; Mon, 16 Nov 2020 23:02:43 +0000 (UTC) Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave08.hostedemail.com (Postfix) with ESMTP id 1DF0E18014B00 for ; Mon, 16 Nov 2020 23:02:41 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 9330A100E7B42; Mon, 16 Nov 2020 23:02:38 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: pin73_56106342732c X-Filterd-Recvd-Size: 1810 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Mon, 16 Nov 2020 23:02:37 +0000 (UTC) Message-ID: <67332536788cefbc39c7f87129adca462bb42fa5.camel@perches.com> From: Joe Perches To: Dwaipayan Ray , Andrew Morton Date: Mon, 16 Nov 2020 15:02:36 -0800 In-Reply-To: References: <20201115202928.81955-1-dwaipayanray1@gmail.com> User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Cc: linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH] checkpatch: Fix unescaped left brace X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Sun, 2020-11-15 at 19:43 -0800, Joe Perches wrote: > On Mon, 2020-11-16 at 01:59 +0530, Dwaipayan Ray wrote: > > There is an unescaped left brace in a regex in OPEN_BRACE > > check. This throws a runtime error when checkpatch is run > > with --fix flag and the OPEN_BRACE check is executed. > > > > Fix it by escaping the left brace. > > > > Fixes: 8d1824780f2f ("checkpatch: add --fix option for a couple OPEN_BRACE misuses") > > Signed-off-by: Dwaipayan Ray > > Thanks Dwaipayan. > > Obviously that code path hasn't been tested in awhile. > > I think the notice to require an escape for a { was added back in > perl 5.16 or so. Just fyi: it seems the requirement was actually implemented in perl 5.22 and this code predates the release of perl 5.22 https://github.com/Perl/perl5/blob/blead/pod/perl5220delta.pod _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees