From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 647A0C43334 for ; Fri, 10 Jun 2022 09:16:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344693AbiFJJQw (ORCPT ); Fri, 10 Jun 2022 05:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347667AbiFJJPN (ORCPT ); Fri, 10 Jun 2022 05:15:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20BEC1CF935 for ; Fri, 10 Jun 2022 02:15:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 928F461D54 for ; Fri, 10 Jun 2022 09:15:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AB82C3411C; Fri, 10 Jun 2022 09:15:08 +0000 (UTC) Date: Fri, 10 Jun 2022 10:15:04 +0100 From: Catalin Marinas To: Alejandro Tafalla Cc: Will Deacon , ~postmarketos/upstreaming@lists.sr.ht, Mark Rutland , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/sysreg: Fix typo in Enum element regex Message-ID: References: <20220609204220.12112-1-atafalla@dnyon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609204220.12112-1-atafalla@dnyon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 10:42:18PM +0200, Alejandro Tafalla wrote: > In the awk script, there was a typo with the comparison operator when > checking if the matched pattern is inside an Enum block. > This prevented the generation of the whole sysreg-defs.h header. > > Fixes: 66847e0618d7 ("arm64: Add sysreg header generation scripting") > Signed-off-by: Alejandro Tafalla > --- > arch/arm64/tools/gen-sysreg.awk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk > index 89bfb74e28de..5c55509eb43f 100755 > --- a/arch/arm64/tools/gen-sysreg.awk > +++ b/arch/arm64/tools/gen-sysreg.awk > @@ -253,7 +253,7 @@ END { > next > } > > -/0b[01]+/ && block = "Enum" { > +/0b[01]+/ && block == "Enum" { This makes sense but I'm surprised that we haven't noticed it until now (maybe some awk versions treat it as a relational operator). -- Catalin