From nobody Sat Feb 7 13:41:33 2026 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (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 2491E21772A for ; Tue, 27 Jan 2026 01:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769477422; cv=none; b=iYDtaDIcbL53YI6BIj9HyrKAGWGTHX2Eby7uB/J7BMomx7jSQnmQeHRpe95PbGZTd6SXUIPKZqLs5L7Lmcu/FdN0XtCVOi5d36D8advxjoJoHrquopoPDuTL9FOxq6yM6qDOLigXis8MOMyySF8Foq6reQoAiyFOeP0MpMwGIgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769477422; c=relaxed/simple; bh=HJf5STadY0mu5NC3cR1V8sYWw2EyO8GWe8YZOYQKYyw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gREiPDjhco73qSg0EKn7z4x9hUs15PjZJLHbrQF0pN1ptKlO9TN4Gt4RaRlNFA0civVSSTcouSfdkf/BZI0+SOYJOCcImwUSLCBX6Hd9eUr0oA5OyJjTVcM5QfnuEcXbWvLFr5hsT3B51XryakVI3rK20ei+XgOhZNySW0YKaBc= 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=jBkeQEAT; arc=none smtp.client-ip=95.215.58.172 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="jBkeQEAT" 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=1769477408; 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=kCmR2iE1OIGu/ZxmC8f/nJ9sAuqOxLg/8zr1I5FkpE8=; b=jBkeQEATL0IuCRMF9uQVymXlM7ofWroOajuYwcRKxhed30BskwnMxyLJWk5rNF1KqilQrM hcK7/h1dM5plcG7uuhVjGI2WsXOjcrBcR3LFNGqOvC7eM/7HmRgcODscTcYQElI8lVvQAW Gp2/3FkAbsj1DTay2o5A41f5nmumYag= From: Thorsten Blum To: Khalid Aziz , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Thorsten Blum , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig Date: Tue, 27 Jan 2026 02:29:54 +0100 Message-ID: <20260127012955.432671-1-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" strcpy() is deprecated [1] and using strcat() is discouraged. Replace them with scnprintf(). No functional changes. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy= [1] Signed-off-by: Thorsten Blum --- drivers/scsi/BusLogic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 865fcbac8fa1..82e436a8f012 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -1631,8 +1631,8 @@ static bool __init blogic_rdconfig(struct blogic_adap= ter *adapter) /* Initialize the Host Adapter Full Model Name from the Model Name. */ - strcpy(adapter->full_model, "BusLogic "); - strcat(adapter->full_model, adapter->model); + scnprintf(adapter->full_model, sizeof(adapter->full_model), + "BusLogic %s", adapter->model); /* Select an appropriate value for the Tagged Queue Depth either from a BusLogic Driver Options specification, or based on whether this Host --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4