public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Hulk Robot <hulkci@huawei.com>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jason Yan <yanaijie@huawei.com>
Subject: [for-linus][PATCH 8/8] bootconfig: init: make xbc_namebuf static
Date: Mon, 21 Sep 2020 20:26:28 -0400	[thread overview]
Message-ID: <20200922002700.619690196@goodmis.org> (raw)
In-Reply-To: 20200922002620.231334654@goodmis.org

From: Jason Yan <yanaijie@huawei.com>

This eliminates the following sparse warning:

init/main.c:306:6: warning: symbol 'xbc_namebuf' was not declared.
Should it be static?

Link: https://lkml.kernel.org/r/20200915070324.2239473-1-yanaijie@huawei.com

Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 init/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index 038128b2a755..e880b4ecb314 100644
--- a/init/main.c
+++ b/init/main.c
@@ -304,7 +304,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.28.0



      parent reply	other threads:[~2020-09-22  0:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22  0:26 [for-linus][PATCH 0/8] tracing: Fixes for 5.9 Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 1/8] kprobes: Fix to check probe enabled before disarm_kprobe_ftrace() Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 2/8] ftrace: Free the trampoline when ftrace_startup() fails Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 3/8] ftrace: Fix missing synchronize_rcu() removing trampoline from kallsyms Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 4/8] tracing: Make the space reserved for the pid wider Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 5/8] ftrace: Let ftrace_enable_sysctl take a kernel pointer buffer Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 6/8] tracing: fix double free Steven Rostedt
2020-09-22  0:26 ` [for-linus][PATCH 7/8] kprobes: tracing/kprobes: Fix to kill kprobes on initmem after boot Steven Rostedt
2020-09-22  0:26 ` Steven Rostedt [this message]

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=20200922002700.619690196@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=hulkci@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=mingo@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