Skip to contentSkip to conversation

kasan-sw_tags-use-str_on_off-helper-in-kasan_init_sw_tags.patch removed from -mm tree

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

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kasan: sw_tags: use str_on_off() helper in kasan_init_sw_tags()
has been removed from the -mm tree. Its filename was
kasan-sw_tags-use-str_on_off-helper-in-kasan_init_sw_tags.patch

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

------------------------------------------------------
From: Thorsten Blum <[email protected]>
Subject: kasan: sw_tags: use str_on_off() helper in kasan_init_sw_tags()
Date: Thu, 16 Jan 2025 07:24:04 +0100

Remove hard-coded strings by using the str_on_off() helper function.

---

 mm/kasan/sw_tags.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/kasan/sw_tags.c renamed from mm/kasan/sw_tags.c~kasan-sw_tags-use-str_on_off-helper-in-kasan_init_sw_tags +2 -1
@@ -26,6 +26,7 @@
 #include <linux/slab.h>
 #include <linux/stacktrace.h>
 #include <linux/string.h>
+#include <linux/string_choices.h>
 #include <linux/types.h>
 #include <linux/vmalloc.h>
 #include <linux/bug.h>
@@ -45,7 +46,7 @@ void __init kasan_init_sw_tags(void)
 	kasan_init_tags();
 
 	pr_info("KernelAddressSanitizer initialized (sw-tags, stacktrace=%s)\n",
-		kasan_stack_collection_enabled() ? "on" : "off");
+		str_on_off(kasan_stack_collection_enabled()));
 }
 
 /*

_

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

ocfs2-use-str_yes_no-and-str_no_yes-helper-functions.patch