From mboxrd@z Thu Jan 1 00:00:00 1970 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 EC69927CCC4; Mon, 22 Sep 2025 21:05:38 +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=1758575140; cv=none; b=h2M5wqWnOKVdCdq925fIxDusCTWRfZ7ZI9szZghXwkOLO+YWJJUskRhQRUubDENAr9KI88EXoT1uv7jNKWOgfFaiiOGdkBsFq7wUULpcrBm3JZSp9uZEM72VHvp2fWUpXvHLNceL/JMCpFI0vGmoobrFwuW59NHI4w8KrccNels= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758575140; c=relaxed/simple; bh=wg4Bsmf0Cylq4UUguQCUREO3hf0XWyOAb0GAtzIkyC4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ey3ZfT2+taLSd5DYhY5HJay0xX3ftbxDnI1fhetHBEjs0Y1g1cju+otADEnQp9hnQfCG2U5+FjBYI4WsxyneegldFAGUFOj0krx8CXaL/TB2FGp4WRfO1e/wMvxmQxXgYNyhTUJXLB86fZTiER9Jh6G0VnH27tizpblkmRYjCgY= 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=qKjYd5lD; 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="qKjYd5lD" 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=1758575134; 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: in-reply-to:in-reply-to:references:references; bh=5zwtpTXeLXp7mAn4X5490IZLFcA3q3uDfFSgnxH9sIE=; b=qKjYd5lD21w25SEO1mnh/F3t8U4dFxmDnP7VEvvkR8jMjPOn5Ik5qDr5tDShNjQFQVMBHW pa89EW7pd7kAHWrkCQOrXIKE1OtRjPTF2YBU9+LDNSNG35gcMH6ZG+BQdvTdhS9l+yMaJv ZfYjvY+h6dEJ93zrZyqjEv5QhW95K94= From: Thorsten Blum To: "David S. Miller" , Andreas Larsson , Geert Uytterhoeven , Helge Deller , Andy Shevchenko , Jens Axboe Cc: linux-hardening@vger.kernel.org, Thorsten Blum , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] sparc: floppy: Replace deprecated strcpy with strscpy in sun_floppy_init Date: Mon, 22 Sep 2025 23:03:52 +0200 Message-ID: <20250922210408.1723452-3-thorsten.blum@linux.dev> In-Reply-To: <20250922210408.1723452-1-thorsten.blum@linux.dev> References: <20250922210408.1723452-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: sparclinux@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; use strscpy() instead. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- arch/sparc/include/asm/floppy_64.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sparc/include/asm/floppy_64.h b/arch/sparc/include/asm/floppy_64.h index b0f633ce3518..8d3ce6506607 100644 --- a/arch/sparc/include/asm/floppy_64.h +++ b/arch/sparc/include/asm/floppy_64.h @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -618,7 +619,7 @@ static unsigned long __init sun_floppy_init(void) sun_pci_fd_ebus_dma.callback = sun_pci_fd_dma_callback; sun_pci_fd_ebus_dma.client_cookie = NULL; sun_pci_fd_ebus_dma.irq = FLOPPY_IRQ; - strcpy(sun_pci_fd_ebus_dma.name, "floppy"); + strscpy(sun_pci_fd_ebus_dma.name, "floppy"); if (ebus_dma_register(&sun_pci_fd_ebus_dma)) return 0; -- 2.51.0