Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4373270yba; Mon, 29 Apr 2019 19:21:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxL1GT98kQtsNavNBrRP8jWkoLHtSGhk/iSIdSjmd1/Ue2/lvBC6fkZwq9ldyrz0tq4VEsA X-Received: by 2002:a63:ff26:: with SMTP id k38mr63477140pgi.123.1556590901033; Mon, 29 Apr 2019 19:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556590901; cv=none; d=google.com; s=arc-20160816; b=w4dXTaWOQVuMDVMXvzQy9KOEiT4usbyAU1WPxdXgnqC/B0kg6LqrbDpnFUfkKaeHyG yNILFr880vy4lLIv4iS6onLV7gCu/44nt6Bk87b5PPdsree12KhPTm6Vd64J5mHt4Q+O kCFP0BJZx2qmYh5WNyO68yaPHZh/POUaVOoygca/SfcbwEYtQDYmZQrb6UasSFFW3FSK 0PA9fI3WPW1pjoTmm6jmCLgQ3mUEO8qVmNUUbvTkQJX1iBzohSFUPRI041x0tY4+akGD 5geiA0yktPt4pLRwp8OaUHZVaYkCGeLodZU0kHdXvNEmBff9pIYms5k8WW1E0V/i5x+a Y/gA== 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=t7pJJiVnfPkGZOS7rgzZfJRS2bOSS//SxkT7pTydcZOqJOq3TN2UHjXSGkN177SOAR gXYPE3DYXdviDM6rV7dXUn9ypl+U8CsKB/lLyIvSE9EYWTRwmyBYeF7azfsNumVxETux aMy1LkEsWIIEt2xBtaswKKke6aJX2DKeRitvnQAyS5Pm1nyb9fz1VJ49jTGNoNHbxAiM Z/aqW27L8NYMJDey4UWbfufptaQle9Mqc4PBG1MHdhN/KQY9BYinfuUgF/QzqnQ44Rb0 ofXcXAlTHFf8HZZyyK9kL8z/H7zE4KQrMa/6higKgbKqahbFr+CvsksCJlHeI8iErMB4 iUFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=eU1yWPlM; 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 f92si25857948plf.124.2019.04.29.19.21.25; Mon, 29 Apr 2019 19:21:41 -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=eU1yWPlM; 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 S1729925AbfD3CSL (ORCPT + 99 others); Mon, 29 Apr 2019 22:18:11 -0400 Received: from sonic310-15.consmr.mail.bf2.yahoo.com ([74.6.135.125]:33146 "EHLO sonic310-15.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729803AbfD3CSL (ORCPT ); Mon, 29 Apr 2019 22:18:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1556590689; bh=SCSrSmM/sHgaTX95LJ49xOTr5scF0jHGsiziNDjBYAY=; h=From:To:Cc:Subject:Date:From:Subject; b=eU1yWPlMHlJxRSQX+h3/FfCahBL2/pByInrwc9S0Jvgplm0qQAZVGN/2a+K/X6kUHJxG6zQereG7C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.4jKPECY1BsDBd8o1HjmLL SWIhl4Q46UmicPyp6fqzhibmxzEjzaKoX46UITnVW4FmlQOVtg3LLJtusqHb9YKDji61TJvWIHSV 1jF4mKQkRvfxI1SD9ZX7uww_HAHQFSFi66dtxDrfcVbhkoyozteOkxFYOfDgK6lvtlXZt1kdVe2S wJFFZjBnH.n8sBEY.bRNPTdzuxSJlbV52RXrEjeTAe8eDZa33xf79RvctY0gF0tz0NUFuuOsT1ut g3rUCz6O6.8oZmgh3UKns3Ec6HaY_t9NxOmfM4lQQJ20qAy8ptwg6OBerddH7V9bHSyLZYZx730L pGOEivZ3baahPu2Q4tl6SbJDLyFyiP.u6oHIu0bfecyYWSzhoD_N9GVueRxnyqWr75Wk0yNE- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Tue, 30 Apr 2019 02:18:09 +0000 Received: from pink.alxu.ca (EHLO localhost.localdomain) ([198.98.62.56]) by smtp425.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8219803eb22854fb0d87c6d2884d9645; Tue, 30 Apr 2019 02:18:04 +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: Mon, 29 Apr 2019 22:17:13 -0400 Message-Id: <20190430021713.664490-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