From nobody Sat Feb 7 18:51:58 2026 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 D05C1C145 for ; Sat, 31 Jan 2026 12:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769862193; cv=none; b=BqCCCnnx4v83UmjgCfq3FKL317MK2xJ9o0AqgNgnfDAmhVtSkkby49t16lzIAlyrCouQ3wdQ3pyNlCRBf2eqyQvCdQ8FOVqVts9FPdmJxhQSIP7SdPkNLQ0mwczRLiW6EOpAb8wcecOSqaoy1/6mNPK0EO8I4t8Avy+bQaWd9Gs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769862193; c=relaxed/simple; bh=W8hMjZKDh2gVhowF6rziH5njV1kt7R2YbYEkCM3K52A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UO4j9MGsT78Z1uPakq7Qy3IgMjCCDjsGUo4UpLf7tGodSgwb8AyZtL/tBKiH+Z+8JdtQnkJxr0dDDrGQMDBT/GJ6y3wqKx++B/EC1tshmma7JHQ8chDfcMT7ZUWN1vBcmJ3IN0WnhiKEjEIgXqvh0n+K0ifof/sqE1VDm1Ifgbw= 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=bg7z/PTw; arc=none smtp.client-ip=91.218.175.189 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="bg7z/PTw" 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=1769862179; 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=y4AG9zjQxz1mJY9gQSxvPqo/5V4VjR3fM231VFwrTGg=; b=bg7z/PTwc4qua1wW0MAZwmr5FSsIqt1hmGJTCIWppfvAlM9aPaKVR1ITYERObFMngp/u6a H1jVASNfm8PqTwfY4LSTni472BUBIzaNuZmTu3vywfsU+MFq82V6UTrB3GgFoglS2aUei5 e+KtB8FM3o5ef/YelmtMrOcQHYR6epw= From: Thorsten Blum To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Russell King Cc: Thorsten Blum , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: omap2: Replace scnprintf with strscpy in omap3_cpuinfo Date: Sat, 31 Jan 2026 13:22:38 +0100 Message-ID: <20260131122238.493577-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" Replace scnprintf("%s", ...) with the faster and more direct strscpy(). Signed-off-by: Thorsten Blum --- arch/arm/mach-omap2/id.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 7f387706368a..068c6dfa3a48 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -17,6 +17,7 @@ #include #include #include +#include =20 #ifdef CONFIG_SOC_BUS #include @@ -250,7 +251,7 @@ static void __init omap3_cpuinfo(void) cpu_name =3D "OMAP3503"; } =20 - scnprintf(soc_name, sizeof(soc_name), "%s", cpu_name); + strscpy(soc_name, cpu_name); =20 /* Print verbose information */ n +=3D scnprintf(buf, sizeof(buf) - n, "%s %s (", soc_name, soc_rev); --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4