diff options
Diffstat (limited to '0008-xen-x86-Fix-Syntax-warning-in-gen-cpuid.py.patch')
-rw-r--r-- | 0008-xen-x86-Fix-Syntax-warning-in-gen-cpuid.py.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/0008-xen-x86-Fix-Syntax-warning-in-gen-cpuid.py.patch b/0008-xen-x86-Fix-Syntax-warning-in-gen-cpuid.py.patch deleted file mode 100644 index 7c04f23..0000000 --- a/0008-xen-x86-Fix-Syntax-warning-in-gen-cpuid.py.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 47cf06c09a2fa1ee92ea3e7718c8f8e0f1450d88 Mon Sep 17 00:00:00 2001 -From: Jason Andryuk <jason.andryuk@amd.com> -Date: Tue, 21 May 2024 10:20:06 +0200 -Subject: [PATCH 08/56] xen/x86: Fix Syntax warning in gen-cpuid.py - -Python 3.12.2 warns: - -xen/tools/gen-cpuid.py:50: SyntaxWarning: invalid escape sequence '\s' - "\s+([\s\d]+\*[\s\d]+\+[\s\d]+)\)" -xen/tools/gen-cpuid.py:51: SyntaxWarning: invalid escape sequence '\s' - "\s+/\*([\w!]*) .*$") - -Specify the strings as raw strings so '\s' is read as literal '\' + 's'. -This avoids escaping all the '\'s in the strings. - -Signed-off-by: Jason Andryuk <jason.andryuk@amd.com> -Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> -master commit: 08e79bba73d74a85d3ce6ff0f91c5205f1e05eda -master date: 2024-04-30 08:34:37 +0200 ---- - xen/tools/gen-cpuid.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/xen/tools/gen-cpuid.py b/xen/tools/gen-cpuid.py -index 02dd45a5ed..415d644db5 100755 ---- a/xen/tools/gen-cpuid.py -+++ b/xen/tools/gen-cpuid.py -@@ -47,8 +47,8 @@ def parse_definitions(state): - """ - feat_regex = re.compile( - r"^XEN_CPUFEATURE\(([A-Z0-9_]+)," -- "\s+([\s\d]+\*[\s\d]+\+[\s\d]+)\)" -- "\s+/\*([\w!]*) .*$") -+ r"\s+([\s\d]+\*[\s\d]+\+[\s\d]+)\)" -+ r"\s+/\*([\w!]*) .*$") - - word_regex = re.compile( - r"^/\* .* word (\d*) \*/$") --- -2.45.2 - |