mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
kconfig: add 'static' to some file-local data
Fix some warnings from sparce like follows: warning: symbol '...' was not declared. Should it be static? Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
7eb7c106f1
commit
d41809ff7a
2 changed files with 11 additions and 5 deletions
|
@ -36,7 +36,7 @@ struct buffer {
|
||||||
YY_BUFFER_STATE state;
|
YY_BUFFER_STATE state;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct buffer *current_buf;
|
static struct buffer *current_buf;
|
||||||
|
|
||||||
static int last_ts, first_ts;
|
static int last_ts, first_ts;
|
||||||
|
|
||||||
|
|
|
@ -15,15 +15,21 @@ struct symbol symbol_yes = {
|
||||||
.name = "y",
|
.name = "y",
|
||||||
.curr = { "y", yes },
|
.curr = { "y", yes },
|
||||||
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
||||||
}, symbol_mod = {
|
};
|
||||||
|
|
||||||
|
struct symbol symbol_mod = {
|
||||||
.name = "m",
|
.name = "m",
|
||||||
.curr = { "m", mod },
|
.curr = { "m", mod },
|
||||||
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
||||||
}, symbol_no = {
|
};
|
||||||
|
|
||||||
|
struct symbol symbol_no = {
|
||||||
.name = "n",
|
.name = "n",
|
||||||
.curr = { "n", no },
|
.curr = { "n", no },
|
||||||
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
.flags = SYMBOL_CONST|SYMBOL_VALID,
|
||||||
}, symbol_empty = {
|
};
|
||||||
|
|
||||||
|
static struct symbol symbol_empty = {
|
||||||
.name = "",
|
.name = "",
|
||||||
.curr = { "", no },
|
.curr = { "", no },
|
||||||
.flags = SYMBOL_VALID,
|
.flags = SYMBOL_VALID,
|
||||||
|
@ -31,7 +37,7 @@ struct symbol symbol_yes = {
|
||||||
|
|
||||||
struct symbol *sym_defconfig_list;
|
struct symbol *sym_defconfig_list;
|
||||||
struct symbol *modules_sym;
|
struct symbol *modules_sym;
|
||||||
tristate modules_val;
|
static tristate modules_val;
|
||||||
|
|
||||||
enum symbol_type sym_get_type(struct symbol *sym)
|
enum symbol_type sym_get_type(struct symbol *sym)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue