Skip to content

Commit 700c101

Browse files
alexkapshuksuryasaimadhu
authored andcommitted
x86/insn: Fix awk regexp warnings
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 <[email protected]> Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: "Peter Zijlstra (Intel)" <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 54ecb8f commit 700c101

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/x86/tools/gen-insn-attr-x86.awk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ BEGIN {
6969

7070
lprefix1_expr = "\\((66|!F3)\\)"
7171
lprefix2_expr = "\\(F3\\)"
72-
lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
72+
lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
7373
lprefix_expr = "\\((66|F2|F3)\\)"
7474
max_lprefix = 4
7575

@@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod)
257257
return add_flags(imm, mod)
258258
}
259259

260-
/^[0-9a-f]+\:/ {
260+
/^[0-9a-f]+:/ {
261261
if (NR == 1)
262262
next
263263
# get index

tools/arch/x86/tools/gen-insn-attr-x86.awk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ BEGIN {
6969

7070
lprefix1_expr = "\\((66|!F3)\\)"
7171
lprefix2_expr = "\\(F3\\)"
72-
lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)"
72+
lprefix3_expr = "\\((F2|!F3|66&F2)\\)"
7373
lprefix_expr = "\\((66|F2|F3)\\)"
7474
max_lprefix = 4
7575

@@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod)
257257
return add_flags(imm, mod)
258258
}
259259

260-
/^[0-9a-f]+\:/ {
260+
/^[0-9a-f]+:/ {
261261
if (NR == 1)
262262
next
263263
# get index

0 commit comments

Comments
 (0)