From nobody Wed Apr 8 12:36:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2471FECAAA1 for ; Fri, 9 Sep 2022 14:01:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232169AbiIIOBW (ORCPT ); Fri, 9 Sep 2022 10:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232000AbiIIOAc (ORCPT ); Fri, 9 Sep 2022 10:00:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A524A895D9; Fri, 9 Sep 2022 07:00:26 -0700 (PDT) Date: Fri, 09 Sep 2022 14:00:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1662732025; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uk7FfUDeErAni6sFaVO4TJ86JFekHVkd7pi6rsCzH/0=; b=AgRKx92pE6deGvsIEE41Xz5JO8pEjRKlJyf43neZZ56tg0Mu3T/3u+XaQ8gshZPqHYfsK8 wDuhgp1ASIpj2OJw+fYbUAjA3Dur8uafhYNxjNhKlaXPJLxLQNvwqQUALPgLALVCtrDcXi ylL7jcUMcYWS6e9Ttska0yX6c0PZNTmt90JbkxUywHmk5uTW+FlfS9UQPkQEUlxLbrFo3F QDfp70zZnRgO2f6wM2WhZZxs7xUX1LtsNIqDCzm3P0h44a+Oi0qxGCbMGIILRVLKSeAWCF aY6VaEaDzcZ+/j4HtGpNBIDvNrhmL/V4p3mZ3KHP7Q2HjBFUhPwsHGbRUcA6JQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1662732025; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uk7FfUDeErAni6sFaVO4TJ86JFekHVkd7pi6rsCzH/0=; b=zBGPTfsAgtTw0AtY8bDWTDp/XirPo831PIm0aSURMhNjTk0S5YFDk1Tf4k7xuN2b3fr1C6 cxSs753MrfhLh/AQ== From: "tip-bot2 for Wolfram Sang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/psi] driver_core: move from strlcpy with unused retval to strscpy Cc: Wolfram Sang , "Greg Kroah-Hartman" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220818205956.6528-1-wsa+renesas@sang-engineering.com> References: <20220818205956.6528-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Message-ID: <166273202403.401.2653523086260038649.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/psi branch of tip: Commit-ID: 07b7b883be5ba0b4bd9ebf8d72c236ef36ae2676 Gitweb: https://git.kernel.org/tip/07b7b883be5ba0b4bd9ebf8d72c236ef3= 6ae2676 Author: Wolfram Sang AuthorDate: Thu, 18 Aug 2022 22:59:56 +02:00 Committer: Greg Kroah-Hartman CommitterDate: Thu, 01 Sep 2022 18:15:32 +02:00 driver_core: move from strlcpy with unused retval to strscpy Follow the advice of the below link and prefer 'strscpy' in this subsystem. Conversion is 1:1 because the return value is not used. Generated by a coccinelle script. Link: https://lore.kernel.org/r/CAHk-=3DwgfRnXz0W3D37d01q3JFkr_i_uTL=3DV6A6= G1oUZcprmknw@mail.gmail.com/ Signed-off-by: Wolfram Sang Link: https://lore.kernel.org/r/20220818205956.6528-1-wsa+renesas@sang-engi= neering.com Signed-off-by: Greg Kroah-Hartman --- drivers/base/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 70f79fc..428265a 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -806,7 +806,7 @@ static int __init save_async_options(char *buf) if (strlen(buf) >=3D ASYNC_DRV_NAMES_MAX_LEN) pr_warn("Too long list of driver names for 'driver_async_probe'!\n"); =20 - strlcpy(async_probe_drv_names, buf, ASYNC_DRV_NAMES_MAX_LEN); + strscpy(async_probe_drv_names, buf, ASYNC_DRV_NAMES_MAX_LEN); async_probe_default =3D parse_option_str(async_probe_drv_names, "*"); =20 return 1;