Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3264892yba; Sat, 18 May 2019 12:58:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnsPpHZSyXrA3XyjWYExeW+VXSn93SoJ85s4bvXCJE+jndPbUBHfYM/kdkmI47fajnkf70 X-Received: by 2002:a62:1bcc:: with SMTP id b195mr16770399pfb.75.1558209491518; Sat, 18 May 2019 12:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558209491; cv=none; d=google.com; s=arc-20160816; b=bpvKz2bhJ9uec/t7WjvqcdCg9Wbk1RcxTg4jLvu+dZzDjlZIECxW1sh7qNZQZ05kLs OMXnJJgppLpNxtkbqREjtnSKUqfYYnuLW9SfjWIbsibhDXduq/tT/Y8umIPvxcEQSLnT gXfpVUo1m6efJFqSJRHxbrMvh2M6beN5lvIeIMmqQxfE4CDnDPmoiQQF6v7g0Tjddd78 s54JrBPHsVvAMD6BdcE9X4S3ypHPUEZkOIUpiOX2KYKoKvzrUZpxfAzs2C5OD7+5Rveu HIwYErBJMUyCAOnkcg5wBlei9mKPv8Neu6znLL1lnRH50Dtyb2iOSPiJJnFfZ2WeTbgu VjXw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SCSrSmM/sHgaTX95LJ49xOTr5scF0jHGsiziNDjBYAY=; b=FLpFUzIY9T/CPMlppS3yDaTiqU086NLKdbFXVrn5KwS1/YuMUS9jZcT1lPLOpAGvP2 9RHN9CDnH9Ney5JlZieyE7x6ys/Y6vZWJU1l/O2rr/LN4vzu9ONklHGnrpjJGwQcp2aD 6wDKFiKuFwlh3EvqyY9bdrnBRwwCoVHacCfHIphZ/diI2V8hi49+4TMeRptr1SGiJ04u zUZThUvyZhl/G5EEUnR2wvRNuboXtRaG7cat6jPLjKGtPXXPJo5jet/YLfQCgV2X+H40 1P1t22gdJeHDXg9rD0XjZ86WuPZAPy/iBAqVLFRuhbreWUIwFPmT481UOiD2VA+VsfCm 3iHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=g4YhRJwS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19si13064341pgi.180.2019.05.18.12.57.56; Sat, 18 May 2019 12:58:11 -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; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=g4YhRJwS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729106AbfERTyB (ORCPT + 99 others); Sat, 18 May 2019 15:54:01 -0400 Received: from sonic308-55.consmr.mail.gq1.yahoo.com ([98.137.68.31]:44586 "EHLO sonic308-55.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfERTyB (ORCPT ); Sat, 18 May 2019 15:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1558209239; bh=SCSrSmM/sHgaTX95LJ49xOTr5scF0jHGsiziNDjBYAY=; h=From:To:Cc:Subject:Date:From:Subject; b=g4YhRJwSOn8c/3ug+Vvwfh8bjVezFqtKOnPhb5wcICkdxof7By1s9FQcZ6SvbowQ/jQu30jKcWdS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naNOnRnL7qxXz9FLDgQhRtPcsy7ZNj6FaMmZv85R4Qs8Ijk SMXAgD.PLCX2hJrOr5xk0fkWWRqlNZGQ2_8HHkuCwJN1ovRL6TC3p9LnNkVjR2rFPQYQWGhGTgu6 mrgSdY3B4f6DhlGqZSVI4tZe1mbU5cvICS0CvKqkAMTWSK3cLyLTHEw8z90hO4POORv5OOyJLWRx P6uUQYmDK7Sz6zvFaxDTPWrMtXSD8_i3CiqzqcKeLDKld9xNavqHeX0INs5djDX6khvxdRadSxyw lEJT2_rossEuBfSQtRdPFer5mv13SRZW2Sxw7RCR.hp3S5WaVqkxr10u4KOhpJEHZP5Omk7BvPdH Xhm9XN0E32iYumHozbt_8FDDik9dJTXMpYYfFfsZhhkeWy4xExKhByEg1CeKg74yj3jJghEe8_UW yogAyfdWr_4yDKkvILoMAw2wdpW1p_AfNkkWT_qVCQlcW7PveoFXPwQG3M7wYPDj4MDQ- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Sat, 18 May 2019 19:53:59 +0000 Received: from CPE00fc8de26033-CM00fc8de26030.cpe.net.cable.rogers.com (EHLO localhost) ([99.228.156.240]) by smtp405.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7b7f3d1cc556625050b02a73e598946c; Sat, 18 May 2019 19:53:58 +0000 (UTC) From: "Alex Xu (Hello71)" To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, jpoimboe@redhat.com, peterz@infradead.org, hpa@zytor.com, masami.hiramatsu.pt@hitachi.com, ben-linux@fluff.org, adrian.hunter@intel.com, "Alex Xu (Hello71)" Subject: [PATCH] treewide: fix awk regexp over-escaping Date: Sat, 18 May 2019 15:53:52 -0400 Message-Id: <20190518195352.124018-1-alex_y_xu@yahoo.ca> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix "warning: regexp escape sequence is not a known regexp operator" on gawk 5.0.0. Results found by: - grepping '\\[^\[\\^$.|?*+()a-z]' on *.awk - grepping 'awk.*\\[^\[\\^$.|?*+()a-z]' - running awk --lint -f /dev/null on *.awk Signed-off-by: Alex Xu (Hello71) --- Documentation/arm/Samsung/clksrc-change-registers.awk | 2 +- arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- lib/raid6/unroll.awk | 2 +- tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- tools/perf/arch/x86/tests/gen-insn-x86-dat.awk | 2 +- tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/arm/Samsung/clksrc-change-registers.awk b/Documentation/arm/Samsung/clksrc-change-registers.awk index 7be1b8aa7cd9..d853f750c861 100755 --- a/Documentation/arm/Samsung/clksrc-change-registers.awk +++ b/Documentation/arm/Samsung/clksrc-change-registers.awk @@ -67,7 +67,7 @@ BEGIN { # to replace and create an associative array of values while (getline line < ARGV[1] > 0) { - if (line ~ /\#define.*_MASK/ && + if (line ~ /#define.*_MASK/ && !(line ~ /USB_SIG_MASK/)) { splitdefine(line, fields) name = fields[0] diff --git a/arch/x86/tools/gen-insn-attr-x86.awk b/arch/x86/tools/gen-insn-attr-x86.awk index b02a36b2c14f..a42015b305f4 100644 --- a/arch/x86/tools/gen-insn-attr-x86.awk +++ b/arch/x86/tools/gen-insn-attr-x86.awk @@ -69,7 +69,7 @@ BEGIN { lprefix1_expr = "\\((66|!F3)\\)" lprefix2_expr = "\\(F3\\)" - lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)" + lprefix3_expr = "\\((F2|!F3|66&F2)\\)" lprefix_expr = "\\((66|F2|F3)\\)" max_lprefix = 4 @@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod) return add_flags(imm, mod) } -/^[0-9a-f]+\:/ { +/^[0-9a-f]+:/ { if (NR == 1) next # get index diff --git a/lib/raid6/unroll.awk b/lib/raid6/unroll.awk index c6aa03631df8..0809805a7e23 100644 --- a/lib/raid6/unroll.awk +++ b/lib/raid6/unroll.awk @@ -13,7 +13,7 @@ BEGIN { for (i = 0; i < rep; ++i) { tmp = $0 gsub(/\$\$/, i, tmp) - gsub(/\$\#/, n, tmp) + gsub(/\$#/, n, tmp) gsub(/\$\*/, "$", tmp) print tmp } diff --git a/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk index b02a36b2c14f..a42015b305f4 100644 --- a/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk +++ b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk @@ -69,7 +69,7 @@ BEGIN { lprefix1_expr = "\\((66|!F3)\\)" lprefix2_expr = "\\(F3\\)" - lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)" + lprefix3_expr = "\\((F2|!F3|66&F2)\\)" lprefix_expr = "\\((66|F2|F3)\\)" max_lprefix = 4 @@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod) return add_flags(imm, mod) } -/^[0-9a-f]+\:/ { +/^[0-9a-f]+:/ { if (NR == 1) next # get index diff --git a/tools/perf/arch/x86/tests/gen-insn-x86-dat.awk b/tools/perf/arch/x86/tests/gen-insn-x86-dat.awk index a21454835cd4..27585d032ee6 100644 --- a/tools/perf/arch/x86/tests/gen-insn-x86-dat.awk +++ b/tools/perf/arch/x86/tests/gen-insn-x86-dat.awk @@ -31,7 +31,7 @@ BEGIN { going = 0 } -/^\s*[0-9a-fA-F]+\:/ { +/^\s*[0-9a-fA-F]+:/ { if (going) { colon_pos = index($0, ":") useful_line = substr($0, colon_pos + 1) diff --git a/tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk b/tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk index ddd5c4c21129..606ccd154392 100644 --- a/tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk +++ b/tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk @@ -69,7 +69,7 @@ BEGIN { lprefix1_expr = "\\((66|!F3)\\)" lprefix2_expr = "\\(F3\\)" - lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)" + lprefix3_expr = "\\((F2|!F3|66&F2)\\)" lprefix_expr = "\\((66|F2|F3)\\)" max_lprefix = 4 @@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod) return add_flags(imm, mod) } -/^[0-9a-f]+\:/ { +/^[0-9a-f]+:/ { if (NR == 1) next # get index -- 2.21.0