Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp471468ybz; Wed, 15 Apr 2020 12:14:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJ7I/X9vuCsHAyAfhT7yGYBKBx4fyCuW371SjVl1sYYlPImZR0cx4yv3IJR0DWGZN1tUVje X-Received: by 2002:a17:906:558a:: with SMTP id y10mr6635225ejp.192.1586978049805; Wed, 15 Apr 2020 12:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586978049; cv=none; d=google.com; s=arc-20160816; b=if7L9Et4CxqJ/lZpF5P9OBaYQqCk4hCwYai25KeeJ91NCLk/h0dSJDU+WB/gL4v7uR 26fpJoBuHuvsOjTYAY0xYMNbV7pcord+RwJa6LqYjMzFaRwvFNiutt9nlMCSuXNEvwUI sypaT5GRkmFUrRqBjVLzBxp4+ZXAbUh6KSVwJvpAQljqaHYkhUnETZh+vRjDbBdctXoi esAuFPpR+X+pZ01FkupPO7At8SCmiDZlT8wNf+I/sofaz6RoXpwwRHmkyeLIfGkq8mPs +PWisRpVJr0HfSo41pHGxgR/I17wCVuiXfOBb0lVnnMHzoz7abaIIJnRFgMeag+52RqY biPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=cISPnFbrvIQfyQstXTttXeItR6pjlof/qZndxEA8OiQ=; b=nOzczhG/6Flisa0cErBMXas6BbkNKXk9K4SfTNZtO6zeGdkANcqs0CsB5+7qziCWyi 1ktezB87SLCU/rC8zJchBzDEdFKDExx7uYVsoYQdc5YA03YZT5sC0wFPbS5LR6N5Tfdz pZo/2ZEdEmfg3bkYYQ1MFX8tlERaS8zsh/ETm1T/iFAsLaKdjpq6sdBY1pSnjb5fpVuf AjX3cglmbs9w1OBE15ENakNYJ66tWALGPgnUNOOWJEf/+Oxsj3tOcCXg/0TELdK48WT/ Sg/tGczcm01DgWR0KJoMjDlgfO2ohp7aS70NSgAjDmG3eXq8QUFZ+x2IRy+ZTsW/Ft4q Q9Bg== 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 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 k27si10571233eja.340.2020.04.15.12.13.45; Wed, 15 Apr 2020 12:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2437594AbgDNJWy (ORCPT + 99 others); Tue, 14 Apr 2020 05:22:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:45174 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437590AbgDNJWx (ORCPT ); Tue, 14 Apr 2020 05:22:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9CBD4AD9F; Tue, 14 Apr 2020 09:22:50 +0000 (UTC) Date: Tue, 14 Apr 2020 11:22:50 +0200 (CEST) From: Miroslav Benes To: Jason Yan cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, peterz@infradead.org, jpoimboe@redhat.com, shile.zhang@linux.alibaba.com, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] x86/unwind/orc: make some symbols static In-Reply-To: <20200413082203.22853-1-yanaijie@huawei.com> Message-ID: References: <20200413082203.22853-1-yanaijie@huawei.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Apr 2020, Jason Yan wrote: > Fix the following sparse warning: > > arch/x86/kernel/unwind_orc.c:19:5: warning: symbol 'cur_orc_ip_table' > was not declared. Should it be static? > arch/x86/kernel/unwind_orc.c:20:18: warning: symbol 'cur_orc_table' was > not declared. Should it be static? > arch/x86/kernel/unwind_orc.c:22:14: warning: symbol 'lookup_num_blocks' > was not declared. Should it be static? > arch/x86/kernel/unwind_orc.c:23:6: warning: symbol 'orc_init' was not > declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > arch/x86/kernel/unwind_orc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c > index e9cc182aa97e..0dbabc469ce2 100644 > --- a/arch/x86/kernel/unwind_orc.c > +++ b/arch/x86/kernel/unwind_orc.c > @@ -16,11 +16,11 @@ extern struct orc_entry __start_orc_unwind[]; > extern struct orc_entry __stop_orc_unwind[]; > > static DEFINE_MUTEX(sort_mutex); > -int *cur_orc_ip_table = __start_orc_unwind_ip; > -struct orc_entry *cur_orc_table = __start_orc_unwind; > +static int *cur_orc_ip_table = __start_orc_unwind_ip; > +static struct orc_entry *cur_orc_table = __start_orc_unwind; > > -unsigned int lookup_num_blocks; > -bool orc_init; > +static unsigned int lookup_num_blocks; > +static bool orc_init; > > static inline unsigned long orc_ip(const int *ip) > { > -- Thanks for the patch, but Josh already fixed it in https://lore.kernel.org/lkml/63b5cab2e28b9c08854fc57f5b512a9ccf76ad95.1584033751.git.jpoimboe@redhat.com/ Josh, any plans to add the patch set into the current queue? Miroslav