Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp545436ybn; Wed, 25 Sep 2019 04:04:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxl29UWgVXK8O6UholUIRGovI78QUNin2K2V4nQ8v0hbkArJ5cQysZdZM7n7WeDAj32URkT X-Received: by 2002:a7b:c7c5:: with SMTP id z5mr6746429wmk.37.1569409490507; Wed, 25 Sep 2019 04:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569409490; cv=none; d=google.com; s=arc-20160816; b=Chhzw+plQAiSs68Q3sOGZHVEMzb91vw5nHRzYvGS99dWcof57hmQEUwaATJeUNm71s 2EwOzQO9/o2am+ZKmRJ9x5MkOaUvCmfmO8UKaviyJcVG3rNpGY0GsO6+aJo4gsgCL+Hs 2nIY/wDSGr+23jXMIegGbTeKQ+EPMhcv0UJqH0YcTZ48YT3Dx0lGCtAj8w2h98kQ2sqk B0ywyQUcm1WfqiHmAB1ERMOhajJvQltF6JgbLOfL8KHUDKfmZj1UhNUKGEJwNkSGaLj9 780NqJMgjfJIQtF9piiUIN5Pc2JVoaVnVY1QJXl0rUDXEmXb0NH6dHbGf1KJ9f0WJkyy 5blA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zAz98ftW/ay0lQ4bae6Z/Yn3V+3lhWPPD/nVcG/OPtA=; b=aoYuhnpi1LV2r91wqNNn6s7yBvKmxYiJnPZa/IgCenS+UQuPLcjBoKep0MerRmhvZG eEz/Gp05Xx3h9KW7W/zrL7MtlHcZ6JGaRk/3MX+PaE5HPPjAn8asybVFyLb3+5MU1ffT 2BdLJ3HwTgFYm+Y/KaTmcHFwUvpLhWFv3rdahy/ck6AxeUZLmpOq0TWlZaH2AUmmntd5 AEZa/GY0ciJJVzrmk10wgtcJVMwc2Uk9dWSB7ushQ8cMspQOOZAvnbGGmUwdJjqFH5Ih 7jDN+ed9HucDyDi4u30TLH5l0xM36KUjNo/o58uCyJPCfF2jp1/rBP0bFe9fRXcfrGg2 ul9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I0ykRchr; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si3132554ede.440.2019.09.25.04.04.27; Wed, 25 Sep 2019 04:04:50 -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=@gmail.com header.s=20161025 header.b=I0ykRchr; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732149AbfIWKzA (ORCPT + 99 others); Mon, 23 Sep 2019 06:55:00 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43993 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732137AbfIWKzA (ORCPT ); Mon, 23 Sep 2019 06:55:00 -0400 Received: by mail-io1-f65.google.com with SMTP id v2so32180805iob.10 for ; Mon, 23 Sep 2019 03:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zAz98ftW/ay0lQ4bae6Z/Yn3V+3lhWPPD/nVcG/OPtA=; b=I0ykRchrp+bZMimYc6rZPefTMgQ+YdysTBMH3/s22l0qgsQLsJ3SO+oaJiMvZCwhdq ADeeduJvXcMh1n8ow219/FpT7w2ZKRzjNewpg1ZpV5EZkOotC+BqGRwqHOTz3IzaEEFF 6sHF5sqR8+hCgvx0lZeo86zpVPi9UQ6BbIiCK9tri205zGqV1kpulixp72dUFrSx08Ua 3o66E9Z5LsuQbZ73OZ6I/rOXyDZ5wayF/X7Uyd5ldHfH5mQv3MyI1Yg061QrfrQPOwIm a1KoMXLe3SqtR8XPvoTivisyfBXkF47+fSjJeEKmcxnZPfhhIc3zG9R4turUdY59JMsb AQog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zAz98ftW/ay0lQ4bae6Z/Yn3V+3lhWPPD/nVcG/OPtA=; b=N9EJ+Z8RyUzFOGVbwUHCab2vo0KZxHSzphQjBfLRgye3kV2uwv9voMaIR9iGHjA3hB IJh9R8CUeav5meKpGL0Ql++D3NytUB9sfOiHnZ73XsqlbSjsXuhjJ/MxuW7bPYeSTimq MIymrqwjafqRr5sBgwk1WTXsbjHcsAySWXe2nQACJAr+7Syu5g3D2hBzrdqYyPrOGuY8 BWADh2qji0/t5Gy2M/9Sn2kF/o18lRDh5PmigjBrKMnD/sfeYlHaGWs0RMMRosK5Wlmy OukR/k6LBT/WKFhRcQPC6pPO8ivmzkbYb1NJoAPOAXOVu5JZUS4IvU1s/NM57y9nPlgg f67g== X-Gm-Message-State: APjAAAUrUjD5epAYgpOxBJp+Mel/OU9KCdfXLltrcUF9LOPVPQPVYPTr gHlb/hl5rlhzml2MBiqfk8k/FXNW+u67tOkY34w= X-Received: by 2002:a5d:9a86:: with SMTP id c6mr16301061iom.118.1569236099164; Mon, 23 Sep 2019 03:54:59 -0700 (PDT) MIME-Version: 1.0 References: <20190922083342.GO13569@xsang-OptiPlex-9020> <20190922150328.6722-1-alexander.kapshuk@gmail.com> <20190923103139.GD15355@zn.tnic> In-Reply-To: <20190923103139.GD15355@zn.tnic> From: Alexander Kapshuk Date: Mon, 23 Sep 2019 13:54:22 +0300 Message-ID: Subject: Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings To: Borislav Petkov Cc: linux-kernel , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, kbuild test robot , Masami Hiramatsu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 1:31 PM Borislav Petkov wrote: > > + Masami. > > On Sun, Sep 22, 2019 at 06:03:28PM +0300, Alexander Kapshuk wrote: > > This patch fixes the regexp warnings shown below: > > Avoid having "This patch" or "This commit" in the commit message. It is > tautologically useless. > > Also, do > > $ git grep 'This patch' Documentation/process > > for more details. > > > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > > awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape sequence `\:' is not a known regexp operator > > awk: ../arch/x86/tools/gen-insn-attr-x86.awk:350: (FILENAME=../arch/x86/lib/x86-opcode-map.txt FNR=41) warning: regexp escape sequence `\&' is not a known regexp operator > > > > The ':' and '&' characters need not escaping when used in string constants > > as part of regular expressions. > > I could use a reasoning here, as in, "gawk manual doesn't have those two > characters in the list here: > > https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html" > > or so. > > > > > [Test-run] > > awk -f arch/x86/tools/gen-insn-attr-x86.awk \ > > arch/x86/lib/x86-opcode-map.txt >../tmp/inat-tables.c > > > > diff arch/x86/lib/inat-tables.c ~/tmp/inat-tables.c; echo $? > > 0 > > > > awk -f tools/arch/x86/tools/gen-insn-attr-x86.awk \ > > tools/arch/x86/lib/x86-opcode-map.txt >../tmp/inat-tables.c > > > > diff tools/objtool/arch/x86/lib/inat-tables.c ~/tmp/inat-tables.c; echo $? > > 0 > > No need for that - just say that diffing the output before and after > shows no changes. > > > [Debugging output] > > DBG:ext:(66&F2) > > DBG:match(ext, ...):(66&F2) > > DBG:match(..., lprefix3_expr):\((F2|!F3|66&F2)\) > > That is supposed to say what exactly? That it still does what it is > expected to do? That was the intention. Thanks for reviewing the patch. I'll wait to hear from Masami before resending the patch. > > Leaving in the rest for Masami. > > Thx. > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette