From nobody Sun Dec 14 13:57:02 2025 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44C2A149C7B for ; Thu, 16 Jan 2025 06:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737008671; cv=none; b=ju63RoZjOBceSHA1pHXmGFWznRCEk6HwxmyFmFtK9zklQbKvB+e4pkFb7sz1fTyYiaeHx2zZDhMNYTTgEeGTYGdiRJ7BvP5L/tlzaZGilsEpCl3z65gVjZqictTNC2fiK900BtgscHaT0qlNJCrPZhS7uQ8vNp0Np84x9RBJWeI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737008671; c=relaxed/simple; bh=zFI2YNkE0RVGgh18Ht40M3biW0tCnr71cciiPdqIeR0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fwsMSb61EFVnux8CWPtkbhfUTCnhw8BLSgIjZETwasDn+hhdNazlui/Ix7NVx2qI5I1JmE9klwXZFbiYDA8jdX2p7NAaMEatuawzfeoV48BmXXCxImsXEjCNpnHBUuFBFHirwu50YBuFJrePZHatlC0076mQ3pBkZTwk03HBmoE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=DV0DSjZ/; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="DV0DSjZ/" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1737008661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3FneSeFdw2NxMz2mVRv2+KuvZR12hGarmr8kvBvl/8k=; b=DV0DSjZ/XyGGMtTY9TpfQWQolvviP2p5cH+icslLhHerZVhagf1XnQQ6QBYlb6lnooua8S EOc85p9uzgA3CF/GyrEoqMf7fv+WQq3D+IqlhKjK5Xcc7Dyn96+lT0B7HLhKkE4fSp9riU ljqrL4rBpJEkldtJ/ozNQrG7FDxroZ4= From: Thorsten Blum To: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Andrew Morton Cc: Thorsten Blum , Anshuman Khandual , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kasan: sw_tags: Use str_on_off() helper in kasan_init_sw_tags() Date: Thu, 16 Jan 2025 07:24:04 +0100 Message-ID: <20250116062403.2496-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_on_off() helper function. Suggested-by: Anshuman Khandual Signed-off-by: Thorsten Blum Reviewed-by: Alexander Potapenko Reviewed-by: Andrey Konovalov --- mm/kasan/sw_tags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/kasan/sw_tags.c b/mm/kasan/sw_tags.c index 220b5d4c6876..b9382b5b6a37 100644 --- a/mm/kasan/sw_tags.c +++ b/mm/kasan/sw_tags.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -45,7 +46,7 @@ void __init kasan_init_sw_tags(void) kasan_init_tags(); =20 pr_info("KernelAddressSanitizer initialized (sw-tags, stacktrace=3D%s)\n", - kasan_stack_collection_enabled() ? "on" : "off"); + str_on_off(kasan_stack_collection_enabled())); } =20 /* --=20 2.47.1