Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2736625pxk; Tue, 15 Sep 2020 00:27:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg25SVkPf9Gji4sGaU174gA0PHM4tvz/vNssl0ATX3G9TJLPwnB1W+0LrcX3FG+bGE1Pka X-Received: by 2002:a17:906:8246:: with SMTP id f6mr7121714ejx.296.1600154828833; Tue, 15 Sep 2020 00:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600154828; cv=none; d=google.com; s=arc-20160816; b=UFqG/GVAzzIcfh269yNZ26Jru493WOKxNqhlkG7hBzl2OjdwFq62ID8cR41QNFSOiZ E0giGn7OCFGHLlz1rdmZPinCeE8VfAXDyldnZGWZmNXPU0YlRFOP3s9tN7tX1RouMXFt 3S9yKUN4YBf+2Yjj3DVpSUiJUJn04wOgi45CSGRGUBbGVGCVvde9oQ3DaxW2OmZu6OJG faseCqPZZfsdO/nDq1gYPh+rAYtChjnoYNvC2nJpyFWnHYRAD2U5d3Ie3XuVW4yS6Kqi EErWFR2Nz/fTjv1H4IcxZCQaOhtRUv2+WXH0SfR6PstM8fVE1awRMCiz4Di32KTHQd+q OtTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+aGYPcBrq6P0c2ZTUcj/MLQ40rojdEzshsRLdQUsJwY=; b=C8VZYYTPmKdMeyUnfD2LA18O4+yYZaCZ4PxOyNEqGDmMfzpeTkakANPLCbgH2e3N8i K6LzFwbMIby/H7bcIt3u4z65Pofv7wElSlUOUqfCw6lf3DQrk431X0luC+NnvRdftlqF Fd84adWCG53Tv6AcrdLZouo5q2gEZJOIicFd7/hVXcAsN80r9MR1ZRHRtGk/2zXtRvZN l9MCSAtwdg9tKftekSaXJl6bXJRew2ZdJvnZwuW3XDr2dCkoaofeaPOomFaxYK/FtSuM Qprw+ERUlaL8E0rv8qib2AHmD5MmGcaAjtV+oYTiPs64FY5rJI9rKgyuz0b8DlcnDOpK yeGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PkKnTTTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si5293007ejk.111.2020.09.15.00.26.46; Tue, 15 Sep 2020 00:27:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PkKnTTTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726131AbgIOHYa (ORCPT + 99 others); Tue, 15 Sep 2020 03:24:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:44026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgIOHY3 (ORCPT ); Tue, 15 Sep 2020 03:24:29 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF02C2080C; Tue, 15 Sep 2020 07:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600154669; bh=lmjngYh7GkGxScGYSERfmVDd4/xBELC3JZvwsqs9C3Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PkKnTTTv3w9GFzkaUDzMcdHecq7ssNK9tMwzIJ9YPrOyQ6z6tgVXECEHXc3wYJV8+ e9ctxR3+/LMeC1mTVWRiCq8Q7wvc5Vy8SzZ4E6tDLs0yALhEUnHpFLCVIUOSl7Rplw PoTFS+WkAR9P7eCCtad3p9CfolnnDndEz1YJ0Owc= Date: Tue, 15 Sep 2020 16:24:24 +0900 From: Masami Hiramatsu To: Jason Yan Cc: , , Hulk Robot Subject: Re: [PATCH] bootconfig: init: make xbc_namebuf static Message-Id: <20200915162424.a947b5d51695f726db2af2a9@kernel.org> In-Reply-To: <20200915070324.2239473-1-yanaijie@huawei.com> References: <20200915070324.2239473-1-yanaijie@huawei.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Sep 2020 15:03:24 +0800 Jason Yan wrote: > This eliminates the following sparse warning: > > init/main.c:306:6: warning: symbol 'xbc_namebuf' was not declared. > Should it be static? Yes, this looks good to me. Acked-by: Masami Hiramatsu Thank you! > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > init/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/init/main.c b/init/main.c > index 92773a5daf8d..5ac07eb4a300 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -303,7 +303,7 @@ static void * __init get_boot_config_from_initrd(u32 *_size, u32 *_csum) > > #ifdef CONFIG_BOOT_CONFIG > > -char xbc_namebuf[XBC_KEYLEN_MAX] __initdata; > +static char xbc_namebuf[XBC_KEYLEN_MAX] __initdata; > > #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0) > > -- > 2.25.4 > -- Masami Hiramatsu