Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12554951rwl; Tue, 3 Jan 2023 16:43:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDdQXLNXxab5qg/NG32OxL9A6Qo+l73mDRn5il/zFJB6R8BMaXCaMXcJAqL4ZiWJWZBeZL X-Received: by 2002:a17:902:ecce:b0:192:b16b:8e49 with SMTP id a14-20020a170902ecce00b00192b16b8e49mr21880686plh.43.1672793012865; Tue, 03 Jan 2023 16:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672793012; cv=none; d=google.com; s=arc-20160816; b=uYf5vVENvVnDLt4Y6J2VdLkLTDNCizgDrdnf8CWoXoj7SB+KKwMdJxSEQzMA6vyKtv uxoUKNNHccJPwTTlFF7u3nzl+C7S39RnnNGd8Rji4KGW5IcZi/Z2pOCwk+TjVYGbn3ey YUItDdemkVGM8buSelfsFXmkAUkRLJXB3YE9jEzf2UCaSIvYj4eR6TRlQYQufhfpM5Xv y/sI/S54SB3UleJA9PmmvtgX4Z+oBFrhGDLzWOQwTZScMvyUs+WNblrS8jW1LqAqhobt fiJpONHoJdqUiWlqWIOyy+e/0iMWgIf7Gnbcbkg7mSgt0LJjWegT0ZNprXoUGIZDmKIc uIxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=H0HWYpjQaX7ldH4mHs3NZWF3iU3LaK0CNwI61COw/5A=; b=TrDFfNtCm+U2FHG6nuxjDwQ4ap9lGYK41mirQksV7mp4FDVZCqkPjnSag31SxzZTWo tJFNC8L2lIHF3O+Pnpr7uOXgsphZb09DDeTDi+9onKKNASap6OvpCRutN79Nx7xy4OFa +IwuvXNVZwl2QOEbFbntXFoUwmGQ1IzoI5+aKNEgP3eRDApmLnjLH4qT6ZWZbMzDpUra TEKRdOvHPOAB21tLTVGJUtfAGODFM6Hwv8kexgzdJ5UHmzlm5B1/kdjcYZnb8+GFb8iZ iTJ1JFQf5Bm7c/jIxH6OnSqvxOGP4cPAL4eSUq5A9jRquzVWQXopnGTmktcrz7Xn47s/ EhLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170902c3c400b001867ea919bdsi31790150plj.25.2023.01.03.16.43.25; Tue, 03 Jan 2023 16:43:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238981AbjADAcg (ORCPT + 57 others); Tue, 3 Jan 2023 19:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238960AbjADAc2 (ORCPT ); Tue, 3 Jan 2023 19:32:28 -0500 Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8906817406; Tue, 3 Jan 2023 16:32:18 -0800 (PST) Received: by mail-il1-f175.google.com with SMTP id z10so10583254ilq.8; Tue, 03 Jan 2023 16:32:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H0HWYpjQaX7ldH4mHs3NZWF3iU3LaK0CNwI61COw/5A=; b=Lmp3hv7/d1/pu+bmocwW5Iy7OMtNNGO+PTBcbL0H+qjKUKmFx2k4kmytcZWrADlUPF jJslExssTntHnhLNGHUUddFZfWRTpVzWA5Uewpbry/BnFEeomzFnCHQoR333vlQ9OOJA xMaK5ioESTyAGOSiF5aMNxha2+n5yKbLkXzgbtwJB/seFOAyCTJoMlzxs7jPFnJEcktq 76ExLNnvsRbcUYl1epfF6gfoLXeZ1BqxCkXcWsvJ6tT5Me/Ulc10jHKg3T1kqAf+L6PX WLlhbq3tFKcJ0ef9vs7Q9sA+V8AdcDp/z908a7eIrbwonTPpig4EAzLmr6hVzzKxjx9C Q+9g== X-Gm-Message-State: AFqh2krWliTvJCDZrUpPYMArdcXhKo+aPNo/hlJ0VX5XQtNqBnDf6vpw wIGhx5wv3+ztSLVZ0SzB9BPsmcLYRA== X-Received: by 2002:a92:b703:0:b0:305:e3da:fae8 with SMTP id k3-20020a92b703000000b00305e3dafae8mr30732849ili.10.1672792337560; Tue, 03 Jan 2023 16:32:17 -0800 (PST) Received: from robh_at_kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id t22-20020a02c496000000b00375192e7484sm10271937jam.90.2023.01.03.16.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 16:32:17 -0800 (PST) Received: (nullmailer pid 147661 invoked by uid 1000); Wed, 04 Jan 2023 00:32:16 -0000 Date: Tue, 3 Jan 2023 18:32:16 -0600 From: Rob Herring To: yang.yang29@zte.com.cn Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, frowand.list@gmail.com, xu.panda@zte.com.cn Subject: Re: [PATCH linux-next] of: base: use strscpy() to instead of strncpy() Message-ID: <167279233345.147541.3032747140502271485.robh@kernel.org> References: <202212231039128402297@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212231039128402297@zte.com.cn> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Dec 2022 10:39:12 +0800, yang.yang29@zte.com.cn wrote: > From: Xu Panda > > The implementation of strscpy() is more robust and safer. > That's now the recommended way to copy NUL terminated strings. > > Signed-off-by: Xu Panda > Signed-off-by: Yang Yang > --- > drivers/of/base.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Applied, thanks!