Skip to contentSkip to conversation

net-remove-get_task_comm-and-print-task-comm-directly.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jan 13, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: net: remove get_task_comm() and print task comm directly
has been removed from the -mm tree. Its filename was
net-remove-get_task_comm-and-print-task-comm-directly.patch

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

------------------------------------------------------
From: Yafang Shao <[email protected]>
Subject: net: remove get_task_comm() and print task comm directly
Date: Thu, 19 Dec 2024 10:34:50 +0800

Since task->comm is guaranteed to be NUL-terminated, we can print it directly without the need to copy it into a separate buffer. This simplifies the code and avoids unnecessary operations.

Cc Johannes Berg <[email protected]>
Cc "André Almeida" <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Borislav Petkov (AMD) <[email protected]>
Cc Danilo Krummrich <[email protected]>
Cc Darren Hart <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Airlie <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc James Morris <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Jiri Slaby <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Kalle Valo <[email protected]>
Cc Karol Herbst <[email protected]>
Cc Kees Cook <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Oded Gabbay <[email protected]>
Cc Paul Moore <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Petr Mladek <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Vineet Gupta <[email protected]>

---

 net/wireless/wext-core.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/wireless/wext-core.c renamed from net/wireless/wext-core.c~net-remove-get_task_comm-and-print-task-comm-directly +1 -3
@@ -640,10 +640,8 @@ EXPORT_SYMBOL(wireless_send_event);
 #ifdef CONFIG_CFG80211_WEXT
 static void wireless_warn_cfg80211_wext(void)
 {
-	char name[sizeof(current->comm)];
-
 	pr_warn_once("warning: `%s' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211\n",
-		     get_task_comm(name, current));
+		     current->comm);
 }
 #endif
 

_

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