From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 6EA66265CD9 for ; Tue, 27 Jan 2026 01:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769477413; cv=none; b=gBjKneva0ybo2jAQL6uDXXwMb+HpoWi6X0iBNAbtEGJ16qWwYSK0n5TJ0OKx/Sl7ZWRO3L7QUs4xFOpyXL3kPzoTinD/uIXXalXmYRm6D/MfAbL+GbEDfIbFxWUO/sMEUWPl8Ou24L3QootUXYI9Z2YStayESlG3rHIp6KhAnZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769477413; c=relaxed/simple; bh=HJf5STadY0mu5NC3cR1V8sYWw2EyO8GWe8YZOYQKYyw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lnjxOR+cgXYs6AsWO7Jh3ZceGxhdpP9RFZw0QN9767EXVBk0fueV7AEU0YCPlPIO36pk6P7t6NNzp8Z4M2SQ9dEaVPuxZiyw1oyYaQtOteaoi08/b/HaWMaIXORt/cN8h3DmNpU+I9x5v6TrW70gH/pthh0ZnBwih10H+Lf1SNA= 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.188 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-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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_adapter *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 -- Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4