Skip to contentSkip to conversation

scripts-gdb-symbols-fix-invalid-escape-sequence-warning.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Mar 8, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: scripts/gdb/symbols: fix invalid escape sequence warning
has been removed from the -mm tree. Its filename was
scripts-gdb-symbols-fix-invalid-escape-sequence-warning.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Andrew Ballance <[email protected]>
Subject: scripts/gdb/symbols: fix invalid escape sequence warning
Date: Sun, 3 Mar 2024 19:25:07 -0600

With python 3.12, '\.' results in this warning
SyntaxWarning: invalid escape sequence '\.'

Cc Jan Kiszka <[email protected]>
Cc Kieran Bingham <[email protected]>
Cc Koudai Iwahori <[email protected]>
Cc Kuan-Ying Lee <[email protected]>
Cc Luis Chamberlain <[email protected]>
Cc Pankaj Raghav <[email protected]>
Cc Shuah Khan <[email protected]>

---

 scripts/gdb/linux/symbols.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/gdb/linux/symbols.py renamed from scripts/gdb/linux/symbols.py~scripts-gdb-symbols-fix-invalid-escape-sequence-warning +1 -1
@@ -82,7 +82,7 @@ lx-symbols command."""
         self.module_files_updated = True
 
     def _get_module_file(self, module_name):
-        module_pattern = ".*/{0}\.ko(?:.debug)?$".format(
+        module_pattern = r".*/{0}\.ko(?:.debug)?$".format(
             module_name.replace("_", r"[_\-]"))
         for name in self.module_files:
             if re.match(module_pattern, name) and os.path.exists(name):

_

Patches currently in -mm which might be from [email protected] are