Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5999908ybc; Wed, 27 Nov 2019 13:10:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwaWl3ZO0RuGJb/Mkod05K4h9eGMPVlLf7nxzUa7AJFH20+XRMUGVzNkhoJVpaWeE4B3j1x X-Received: by 2002:a17:906:c791:: with SMTP id cw17mr7505795ejb.69.1574889019696; Wed, 27 Nov 2019 13:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889019; cv=none; d=google.com; s=arc-20160816; b=YSrZEjtXXu1q4pc76+NyF1rpxRh0Z/0n7roSANB39f7irfcyof/n/rng99k9sBnN3Z 19BsZW+2fxVKOskIAUv5Bvg21chGsgan8mvLAOOUB2sL/lw0GqqnG3XtxtCTgpSVyCiT s3DhGOc23hCofwkRrp8USuU4yizvK05dnCK5LPujgFbYInvbS6cKzyBmY+7zYVe2W4r9 8AcaXN1dZGvOAw70AyCg7WYRcb3ZXaQNPdZiRyB9SpGwT7bIYlYa7ZlqxYuM16T6gynn ID+Swuus+J1TVF+6VBS1kxX9C0zpwX6mqNPYeDvboPPisNZX11Wmy1JldHbYy3Fzg8+8 TXkg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=usf+IBSAdOh6DkNzaA/3Na8XRLwAFSw1GRDE93OdvVo=; b=G+6J063O+q2tz6ynjCA3e/v00vBbwK+pD3Krgga5pXlX5ss7Tp2hD1DMWSM92L0WKT KWOQvQO+1KgJg4YQ9d95YoUKnWXUOJqIfzsy2a03hJsrLnP+de7GuTPdX1ol2fqk/C/Y 9bq+dM+JUSS77X6yIFRmg1wnOpFfwrQ18JZF4DKfPCj3OQN2jpQC0FET2VJrpt4ZUrzb tYYgnXfZfZJYqKh5WcxLoHCxH+jv089LtPBQKj2bO/Ne2gzjMiK9N6Bv4i/SKFdbsJ5K FMxgbg63aQSMK09wlWnkru5L0Qs3j0cU+C9P/A3MpzfqY8m/IRfZ1tS0M+H2l2m2bBRW sfSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yNVx0hod; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si3885887ejs.400.2019.11.27.13.09.55; Wed, 27 Nov 2019 13:10:19 -0800 (PST) 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=@kernel.org header.s=default header.b=yNVx0hod; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732440AbfK0VGe (ORCPT + 99 others); Wed, 27 Nov 2019 16:06:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:60472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbfK0VGZ (ORCPT ); Wed, 27 Nov 2019 16:06:25 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D96C21850; Wed, 27 Nov 2019 21:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888784; bh=2Z0PeulUKiddpx7Y+aKFqPHyf9rEQImC8/nS7AD3Qp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yNVx0hodlq0kYAOu0+lmeL6RET6z4J3DLC1SlaYkMNIC86lKr8/dV71ED/Prt47N4 mM/QKc3AyFidNQbZf3nVjyBQJ+wOVdKqSKgvk+sk4NUHHtAar+yx2CX4du60XrLy0k wy9aSAd+mCoeHVXDHED47GPZB1FQ0c0ygHV8l5wg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Alexander Kapshuk , Borislav Petkov , Masami Hiramatsu , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Arnaldo Carvalho de Melo , Ingo Molnar , Josh Poimboeuf , Thomas Gleixner , x86-ml Subject: [PATCH 4.19 267/306] x86/insn: Fix awk regexp warnings Date: Wed, 27 Nov 2019 21:31:57 +0100 Message-Id: <20191127203134.338035756@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Kapshuk commit 700c1018b86d0d4b3f1f2d459708c0cdf42b521d upstream. gawk 5.0.1 generates the following regexp warnings: 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 Ealier versions of gawk are not known to generate these warnings. The gawk manual referenced below does not list characters ':' and '&' as needing escaping, so 'unescape' them. See https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html for more info. Running diff on the output generated by the script before and after applying the patch reported no differences. [ bp: Massage commit message. ] [ Caught the respective tools header discrepancy. ] Reported-by: kbuild test robot Signed-off-by: Alexander Kapshuk Signed-off-by: Borislav Petkov Acked-by: Masami Hiramatsu Cc: "H. Peter Anvin" Cc: "Peter Zijlstra (Intel)" Cc: Arnaldo Carvalho de Melo Cc: Ingo Molnar Cc: Josh Poimboeuf Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/20190924044659.3785-1-alexander.kapshuk@gmail.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- 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, return add_flags(imm, mod) } -/^[0-9a-f]+\:/ { +/^[0-9a-f]+:/ { if (NR == 1) next # get index --- 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, return add_flags(imm, mod) } -/^[0-9a-f]+\:/ { +/^[0-9a-f]+:/ { if (NR == 1) next # get index