1 |
commit: c2f22be66c4c66dfca8c9700e773ecf41429d30b |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 14 23:07:49 2019 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 14 23:07:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c2f22be6 |
7 |
|
8 |
x86/insn: Fix awk regexp warnings. See bug #696846. |
9 |
|
10 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
11 |
|
12 |
0000_README | 4 ++ |
13 |
2900_awk-regexp-warnings.patch | 89 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 93 insertions(+) |
15 |
|
16 |
diff --git a/0000_README b/0000_README |
17 |
index 075d9be..0d383a1 100644 |
18 |
--- a/0000_README |
19 |
+++ b/0000_README |
20 |
@@ -107,6 +107,10 @@ Patch: 2600_enable-key-swapping-for-apple-mac.patch |
21 |
From: https://github.com/free5lot/hid-apple-patched |
22 |
Desc: This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902 |
23 |
|
24 |
+Patch: 2900_awk-regexp-warnings.patch |
25 |
+From: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=700c1018b86d0d4b3f1f2d459708c0cdf42b521d |
26 |
+Desc: x86/insn: Fix awk regexp warnings. See bug #696846. |
27 |
+ |
28 |
Patch: 4567_distro-Gentoo-Kconfig.patch |
29 |
From: Tom Wijsman <TomWij@g.o> |
30 |
Desc: Add Gentoo Linux support config settings and defaults. |
31 |
|
32 |
diff --git a/2900_awk-regexp-warnings.patch b/2900_awk-regexp-warnings.patch |
33 |
new file mode 100644 |
34 |
index 0000000..5e62625 |
35 |
--- /dev/null |
36 |
+++ b/2900_awk-regexp-warnings.patch |
37 |
@@ -0,0 +1,89 @@ |
38 |
+From 700c1018b86d0d4b3f1f2d459708c0cdf42b521d Mon Sep 17 00:00:00 2001 |
39 |
+From: Alexander Kapshuk <alexander.kapshuk@×××××.com> |
40 |
+Date: Tue, 24 Sep 2019 07:46:59 +0300 |
41 |
+Subject: x86/insn: Fix awk regexp warnings |
42 |
+ |
43 |
+gawk 5.0.1 generates the following regexp warnings: |
44 |
+ |
45 |
+ GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c |
46 |
+ awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape sequence `\:' is not a known regexp operator |
47 |
+ 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 |
48 |
+ |
49 |
+Ealier versions of gawk are not known to generate these warnings. The |
50 |
+gawk manual referenced below does not list characters ':' and '&' as |
51 |
+needing escaping, so 'unescape' them. See |
52 |
+ |
53 |
+ https://www.gnu.org/software/gawk/manual/html_node/Escape-Sequences.html |
54 |
+ |
55 |
+for more info. |
56 |
+ |
57 |
+Running diff on the output generated by the script before and after |
58 |
+applying the patch reported no differences. |
59 |
+ |
60 |
+ [ bp: Massage commit message. ] |
61 |
+ |
62 |
+[ Caught the respective tools header discrepancy. ] |
63 |
+Reported-by: kbuild test robot <lkp@×××××.com> |
64 |
+Signed-off-by: Alexander Kapshuk <alexander.kapshuk@×××××.com> |
65 |
+Signed-off-by: Borislav Petkov <bp@××××.de> |
66 |
+Acked-by: Masami Hiramatsu <mhiramat@××××××.org> |
67 |
+Cc: "H. Peter Anvin" <hpa@×××××.com> |
68 |
+Cc: "Peter Zijlstra (Intel)" <peterz@×××××××××.org> |
69 |
+Cc: Arnaldo Carvalho de Melo <acme@××××××.com> |
70 |
+Cc: Ingo Molnar <mingo@××××××.com> |
71 |
+Cc: Josh Poimboeuf <jpoimboe@××××××.com> |
72 |
+Cc: Thomas Gleixner <tglx@××××××××××.de> |
73 |
+Cc: x86-ml <x86@××××××.org> |
74 |
+Link: https://lkml.kernel.org/r/20190924044659.3785-1-alexander.kapshuk@×××××.com |
75 |
+--- |
76 |
+ arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- |
77 |
+ tools/arch/x86/tools/gen-insn-attr-x86.awk | 4 ++-- |
78 |
+ 2 files changed, 4 insertions(+), 4 deletions(-) |
79 |
+ |
80 |
+diff --git a/arch/x86/tools/gen-insn-attr-x86.awk b/arch/x86/tools/gen-insn-attr-x86.awk |
81 |
+index b02a36b2c14f..a42015b305f4 100644 |
82 |
+--- a/arch/x86/tools/gen-insn-attr-x86.awk |
83 |
++++ b/arch/x86/tools/gen-insn-attr-x86.awk |
84 |
+@@ -69,7 +69,7 @@ BEGIN { |
85 |
+ |
86 |
+ lprefix1_expr = "\\((66|!F3)\\)" |
87 |
+ lprefix2_expr = "\\(F3\\)" |
88 |
+- lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)" |
89 |
++ lprefix3_expr = "\\((F2|!F3|66&F2)\\)" |
90 |
+ lprefix_expr = "\\((66|F2|F3)\\)" |
91 |
+ max_lprefix = 4 |
92 |
+ |
93 |
+@@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod) |
94 |
+ return add_flags(imm, mod) |
95 |
+ } |
96 |
+ |
97 |
+-/^[0-9a-f]+\:/ { |
98 |
++/^[0-9a-f]+:/ { |
99 |
+ if (NR == 1) |
100 |
+ next |
101 |
+ # get index |
102 |
+diff --git a/tools/arch/x86/tools/gen-insn-attr-x86.awk b/tools/arch/x86/tools/gen-insn-attr-x86.awk |
103 |
+index b02a36b2c14f..a42015b305f4 100644 |
104 |
+--- a/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk |
105 |
++++ b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk |
106 |
+@@ -69,7 +69,7 @@ BEGIN { |
107 |
+ |
108 |
+ lprefix1_expr = "\\((66|!F3)\\)" |
109 |
+ lprefix2_expr = "\\(F3\\)" |
110 |
+- lprefix3_expr = "\\((F2|!F3|66\\&F2)\\)" |
111 |
++ lprefix3_expr = "\\((F2|!F3|66&F2)\\)" |
112 |
+ lprefix_expr = "\\((66|F2|F3)\\)" |
113 |
+ max_lprefix = 4 |
114 |
+ |
115 |
+@@ -257,7 +257,7 @@ function convert_operands(count,opnd, i,j,imm,mod) |
116 |
+ return add_flags(imm, mod) |
117 |
+ } |
118 |
+ |
119 |
+-/^[0-9a-f]+\:/ { |
120 |
++/^[0-9a-f]+:/ { |
121 |
+ if (NR == 1) |
122 |
+ next |
123 |
+ # get index |
124 |
+-- |
125 |
+cgit 1.2-0.3.lf.el7 |
126 |
+ |