Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6543577ybl; Wed, 15 Jan 2020 06:25:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwVDGnBhcS1nZUvBuHVYVp/j4qwoNZOIjeONBjR0yyzZmFhm1hibURpWJtg29Vs87TUMmvT X-Received: by 2002:a9d:7501:: with SMTP id r1mr2965941otk.196.1579098302870; Wed, 15 Jan 2020 06:25:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579098302; cv=none; d=google.com; s=arc-20160816; b=XWkBdz46eZ879bOXIjkVEc8r4WDigFYU18ulPP19DJt5CMO2zTZ7RmYm2/IDEK+jpi fVyMB8JB2eVbkHqLtlJzV8W4CzRs+8NiFuJF12TRK2ZBMGxWT3O53WxaNDKmeY/A+WgP rq6ZVfRTEy/uTY2qP66ymnT6KTTMfLO7XLBJpjBISVeDeypLPKGosrzEUWDFz5yclP93 T3u8sUJ+TrPmeM0CvFQ6aWryclojaQYhZRbMdMZCXv3JiT6z4cF32AMkihgbRIgc8DSw aBxLCf2hIdiq3SKYu5ajRB0gioUhxLX2rqhId0VY+N86hj+MGgNBRS71Clad63ZHXGAF euEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=tb5XB7EZCTbcxvTnafePj2rGWENiVo4aEBfy19vG86s=; b=AXFgkT/1Cjc8lf5Q5z6/ts9AHRlvhNKYPA2pT7P8vzfeoAp094jHeM3jyjKtolJuZL g7EuyDWcsUDokf36vAcHaT9G3Ly1pQIxyycVbgz6R79qqObV1dQLMw7iBX7NrwG90XEK vp09PtPirQdFjUyXKwM+TnTlV70xO3mMxvDFOW86hRKN52EMgrofF9BDFOyoBOpgwTpA GceM7SO3Aj2AlEMVV6tDV8K/gs2bn3BAIUVexHZWUBrZjGc5uHP76OeICYUDGESIfzFJ OtCPE+BULIY+V5Gls5IUXj8HhphiFlo/bG127s08OTignlxWLqK19VK6c97amWSLjDz9 Nxvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si8969891oir.123.2020.01.15.06.24.49; Wed, 15 Jan 2020 06:25:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728949AbgAOOX2 (ORCPT + 99 others); Wed, 15 Jan 2020 09:23:28 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62208 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbgAOOX1 (ORCPT ); Wed, 15 Jan 2020 09:23:27 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00FENNu0139563 for ; Wed, 15 Jan 2020 09:23:26 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2xhbvgehq7-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 Jan 2020 09:23:22 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 15 Jan 2020 14:21:04 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 15 Jan 2020 14:21:01 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 00FEL0VD43909150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 14:21:00 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 75CA1A4060; Wed, 15 Jan 2020 14:21:00 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D96C4A4064; Wed, 15 Jan 2020 14:20:59 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.8.170]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 15 Jan 2020 14:20:59 +0000 (GMT) Date: Wed, 15 Jan 2020 16:20:58 +0200 From: Mike Rapoport To: Chen Zhou Cc: Steven Rostedt , Masami Hiramatsu , akpm@linux-foundation.org, sfr@canb.auug.org.au, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH next] init/main.c: make some symbols static References: <20200115135458.71460-1-chenzhou10@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200115135458.71460-1-chenzhou10@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 20011514-0016-0000-0000-000002DD909C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20011514-0017-0000-0000-00003340240E Message-Id: <20200115142057.GE19826@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-15_02:2020-01-15,2020-01-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001150116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (added Steven and Masami) On Wed, Jan 15, 2020 at 09:54:58PM +0800, Chen Zhou wrote: > Make variable xbc_namebuf and function boot_config_checksum static to > fix build warnings, warnings are as follows: > > init/main.c:254:6: > warning: symbol 'xbc_namebuf' was not declared. Should it be static? > init/main.c:330:5: > warning: symbol 'boot_config_checksum' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Chen Zhou > --- > init/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/init/main.c b/init/main.c > index a77114f..3a95591 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -251,7 +251,7 @@ early_param("loglevel", loglevel); > > #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) > > @@ -327,7 +327,7 @@ static char * __init xbc_make_cmdline(const char *key) > return new_cmdline; > } > > -u32 boot_config_checksum(unsigned char *p, u32 size) > +static u32 boot_config_checksum(unsigned char *p, u32 size) > { > u32 ret = 0; > > -- > 2.7.4 > -- Sincerely yours, Mike.