Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2727402pxk; Tue, 15 Sep 2020 00:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLQr33fR9doucamehBnOn87gEHGbHyVj5Y31QWTxnJ/A3CmaLXYz0gmblvEtNzdtUn50iP X-Received: by 2002:a05:6402:b9a:: with SMTP id cf26mr14569119edb.375.1600153501714; Tue, 15 Sep 2020 00:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600153501; cv=none; d=google.com; s=arc-20160816; b=Vgc3DQ5aI4U2IhwdU7h1S/7MKE/r9Bud2voAcBdAuJvBqRBQrtTKxp7B2Ny3W2LBtA DmefLi5PTIkusluzYfhEQt04qatvQVve1tHCiPDBsJyQzMEcjlNDNDLF+NMKvP+M12FI 6RO///ziTkwWSc1an/YQqr79sgVEbc3k0sGXMeTWx83zQ/3Qr49xT44b1O7vmGaMCyCf G9XFPXr0jyvF/1/0aHkqjXwELiVvUYey5282s7wfvgUx2/VsJG/pUr9/IqgIC0D5wXiP 69oHpZZ+RoIleS1mz4iP/da7snf+aUxvFWEdN5f3WhHMvdxsJQ0bQJ/jukO36Xbm+Bfz APMg== 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 :message-id:date:subject:cc:to:from; bh=fTUdh1Yd8P3iEdiBtCQLrMmBN6OucsaVoceVPN98gy8=; b=HO9LxctA60xz4tc+30g+XNLofXRnV4gkDM1dUIo8DXiSMO57kLKdJxKYCw6c7UeqKw 4YWcuIUkMx9sUpeiT7/yT2DEOw1UW2r+4qsWsMKxiQ2kLf+hwfYtZi9Xu0fUdGMRYH4+ dOaLJjnjBrl4wAlRrsSw3esAlHB4Xe71gxEXCjdzumXYJkF1R7FBXqiyVbtQSG3uh4Eq txyXEPgFmSi4KW6dgpfH3zsy4BUvjK/sg0vbv9heF77mCUU21kRFiKwh+bhPagJiFIrD D4DK/w5Dil5ppI2/Ec3mtj8fXsY8so/vOg8g51a2Mt8H6SLJu6iRZ7srEXkfR9bVl1si r34Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si8240717ejg.255.2020.09.15.00.04.39; Tue, 15 Sep 2020 00:05:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgIOHDT (ORCPT + 99 others); Tue, 15 Sep 2020 03:03:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:33646 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726125AbgIOHCW (ORCPT ); Tue, 15 Sep 2020 03:02:22 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C283098D5B32229C345C; Tue, 15 Sep 2020 15:02:15 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 15:02:08 +0800 From: Jason Yan To: , , CC: Jason Yan , Hulk Robot Subject: [PATCH] bootconfig: init: make xbc_namebuf static Date: Tue, 15 Sep 2020 15:03:24 +0800 Message-ID: <20200915070324.2239473-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This eliminates the following sparse warning: init/main.c:306:6: warning: symbol 'xbc_namebuf' was not declared. Should it be static? 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