mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miroslav Benes <mbenes@suse.cz>
To: Jason Yan <yanaijie@huawei.com>
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 <hulkci@huawei.com>
Subject: Re: [PATCH] x86/unwind/orc: make some symbols static
Date: Tue, 14 Apr 2020 11:22:50 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LSU.2.21.2004141121110.6508@pobox.suse.cz> (raw)
In-Reply-To: <20200413082203.22853-1-yanaijie@huawei.com>

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 <hulkci@huawei.com>
> Signed-off-by: Jason Yan <yanaijie@huawei.com>
> ---
>  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

  reply	other threads:[~2020-04-14  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-13  8:22 Jason Yan
2020-04-14  9:22 ` Miroslav Benes [this message]
2020-04-14 22:24   ` Josh Poimboeuf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LSU.2.21.2004141121110.6508@pobox.suse.cz \
    --to=mbenes@suse.cz \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=hulkci@huawei.com \
    --cc=jpoimboe@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=shile.zhang@linux.alibaba.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=yanaijie@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®