From nobody Tue Dec 16 07:13:54 2025 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 5B2F4146A79 for ; Tue, 14 Jan 2025 15:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736867408; cv=none; b=b+cwbaD9XbURT+ThovZn6gWANVLcQUu7EX04rnobT+Gj960QooxcoDnT3OBPgoQVpTDtMPb5pj7zZfOJECYNivztpeVPYdh56mwHLNG4AjvqnzcTJlUiS4FMI2Mbf1srFpdvJG/tx90ViiJ2Es2/WzISh6a1CeDqVGWfHwhnfX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736867408; c=relaxed/simple; bh=8D42B7vHgS7KROJ2PPjybkotp6VztXn9hVXSwlZSHww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RGYAQ0V5Ws4ok9luLe1ufDjp3SnD136tNktoGDkQzrZvvA0J0usRqKb/e+EswtT1HuvgniGxshDaxanAdosJZl9+uJDSP+50amUj/FjQ2ELPP/3is2KUvynYX7woDfgcG16c5mDhoNMXoQ6Dk+Y45fEg34OGFcTgooqvy3EgZgg= 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=XFnOHu1T; arc=none smtp.client-ip=95.215.58.181 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="XFnOHu1T" 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=1736867404; 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=D5/zilsgyJRj4sbTAa8LKZAPy1Gx5YuP6bFyTKLkgZ0=; b=XFnOHu1TYO2a5t7IEEUIVd7CSfrJOpAQiEWJJrtnHECRMqs98cCqeOJsmftuKCmG2HTJT6 +2TkyiHuANCxFUbmqcsjb9GwCSRj9GSvZz8oCFBiylb+6BHEZ0oQt19iwEyjIc/mfi6Vxw YX+Y4iLsyYx/xZV010hRAfUa5gVYIDg= 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: hw_tags: Use str_on_off() helper in kasan_init_hw_tags() Date: Tue, 14 Jan 2025 16:09:35 +0100 Message-ID: <20250114150935.780869-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: Andrey Konovalov --- mm/kasan/hw_tags.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/kasan/hw_tags.c b/mm/kasan/hw_tags.c index ccd66c7a4081..9a6927394b54 100644 --- a/mm/kasan/hw_tags.c +++ b/mm/kasan/hw_tags.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include =20 @@ -263,8 +264,8 @@ void __init kasan_init_hw_tags(void) =20 pr_info("KernelAddressSanitizer initialized (hw-tags, mode=3D%s, vmalloc= =3D%s, stacktrace=3D%s)\n", kasan_mode_info(), - kasan_vmalloc_enabled() ? "on" : "off", - kasan_stack_collection_enabled() ? "on" : "off"); + str_on_off(kasan_vmalloc_enabled()), + str_on_off(kasan_stack_collection_enabled())); } =20 #ifdef CONFIG_KASAN_VMALLOC --=20 2.47.1