From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7A7511F09A8; Fri, 28 Feb 2025 17:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740762213; cv=none; b=nbTt348Y1N18UBwCOInVpXg1sGTIcLp5ygXFcgHx+QMiKyx6/gmd7zPpPbyNGRns1LwWPFhEfm206dhfZWNe6Ew1lx1LPFYCNspdC7cNUAgyvdl1B9gCpesRSOWTgv2HIQme5mpYM/9YX3wwZjIPizoYZPql4XHn/yqxKmrdDbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740762213; c=relaxed/simple; bh=87MeIyTnCh42lvIVh/gUDVDz6THw0IS0/ekXuG8Yp9I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dg9ApH9dC4RZtjJVBToMovEANUek0FxT0aUE2mAVJONJTH+APzpCrG9lHUJ4UWulfoyNIbySoPqyw4obn/P5jIeadF4pXdEnr5gVyrS0rk8jYxiqA1QuZGN9gBPdWBTOd4ayjptAUHWplO2bji37iSQXtzWksMg9y5sWf4vhH8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VMh90KSX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VMh90KSX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FB13C4CEE5; Fri, 28 Feb 2025 17:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740762212; bh=87MeIyTnCh42lvIVh/gUDVDz6THw0IS0/ekXuG8Yp9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VMh90KSX/qkhcZk//yf1Huc/CHYyS1ct0ZwCI1hUItnPu0xfocWwEeJhWKUlxrUsc m8lMS5KZQQSRVSlWmu5pjWAyYbWZXtIvVxf6NQGADM8nf8CwyHh9dWbAP7CHtBeiMy UhadyHL0qs1ei5gL7x9GZ3PM0UhekqSBq5I/txXc= Date: Fri, 28 Feb 2025 09:02:10 -0800 From: "gregkh@linuxfoundation.org" To: Aditya Garg Cc: "castet.matthieu@free.fr" , "stf_xl@wp.pl" , "b-liu@ti.com" , "johan@kernel.org" , "heikki.krogerus@linux.intel.com" , "valentina.manea.m@gmail.com" , "shuah@kernel.org" , "i@zenithal.me" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH] usb: replace strcpy() with strscpy() Message-ID: <2025022833-unawake-barricade-7bb8@gregkh> References: Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Feb 28, 2025 at 03:07:03PM +0000, Aditya Garg wrote: > From: Aditya Garg > > The strcpy() function has been deprecated and replaced with strscpy(). > This patch shall replace it in the whole USB tree. > > Link: https://github.com/KSPP/linux/issues/88 > Signed-off-by: Aditya Garg As the two functions do different things, are you sure it is safe to just do a search/replace here? If so, you need to explain that in the changelog why this is ok, and if not, please document that as well :) thanks, greg k-h