From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EEF9C433E0 for ; Tue, 16 Feb 2021 14:36:37 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3ADAF64E07 for ; Tue, 16 Feb 2021 14:36:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3ADAF64E07 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0E59086D7A; Tue, 16 Feb 2021 14:36:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zlHrBgCGYMDC; Tue, 16 Feb 2021 14:36:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8977C86D37; Tue, 16 Feb 2021 14:36:36 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ECB561BF5E0 for ; Tue, 16 Feb 2021 14:36:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E8D2C86821 for ; Tue, 16 Feb 2021 14:36:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RbowDi1uNIZ8 for ; Tue, 16 Feb 2021 14:36:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5DF21867CD for ; Tue, 16 Feb 2021 14:36:34 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D8E9064DF5; Tue, 16 Feb 2021 14:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613486194; bh=sjVIVcPSfd+mytOr8zCuOoRVii4+CL2lGaL/Tfw4EfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jF5NJt5t3lyIVg68iPR//foJXr+Vu9WHkfjCd/HXK4Y+Ly+W4Xu6FoP1zMLoZsKh6 3WdpswypA7S94nH4FQyBnhFvi9GofzpxszbUE+gFp3b+SaoSRz7AIRaL0IPt73aeFO /Ez+VIMkyQmgmZ1ZodKVV2tdzt26EGSlQNpmdJwy4+TJ+//f93ems+VvxIRM+JsK6E G6Qvv3HgiTqPs1GMx52gs/YMAWUBPnuOLxb+TBo4BwHbL4KOgtnxn0O10jFDqPFucK TcXEPRXWuFCfw5f192M+YFzwYFToioRhdLkdYvTen0AIPG7mBdo5shSjEpOSwe29KR rK6ebx6MP57tw== Date: Tue, 16 Feb 2021 15:36:24 +0100 From: Robert Richter To: Kumar Kartikeya Dwivedi Subject: Re: [PATCH 06/13] staging: octeon: Switch from strlcpy to strscpy Message-ID: References: <20210131172838.146706-1-memxor@gmail.com> <20210131172838.146706-7-memxor@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210131172838.146706-7-memxor@gmail.com> X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Jon Nettleton , Mark Greer , Marc Dietrich , Ioana Ciornei , Thomas Gleixner , ac100@lists.launchpad.net, devel@driverdev.osuosl.org, Stephen Rothwell , Florian Fainelli , Daniel Drake , Jens Frederich , Viresh Kumar , Vaibhav Agarwal , Johan Hovold , Ian Abbott , Al Viro , linux-tegra@vger.kernel.org, William Cohen , Florian Schilhabel , Alex Elder , Teddy Wang , greybus-dev@lists.linaro.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Andrew Morton , Sudip Mukherjee , Mike Rapoport , Larry Finger Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" On 31.01.21 22:58:27, Kumar Kartikeya Dwivedi wrote: > strlcpy is marked as deprecated in Documentation/process/deprecated.rst, > and there is no functional difference when the caller expects truncation > (when not checking the return value). strscpy is relatively better as it > also avoids scanning the whole source string. > > This silences the related checkpatch warnings from: > 5dbdb2d87c29 ("checkpatch: prefer strscpy to strlcpy") > > Signed-off-by: Kumar Kartikeya Dwivedi > --- > drivers/staging/octeon/ethernet-mdio.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Robert Richter _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel