summaryrefslogtreecommitdiff
path: root/kconfig/symbol.c
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-02-01 07:14:11 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-02-02 09:01:21 (GMT)
commitd0e328c8ad357a705b6218e20f74ec1ec1869e8d (patch)
treebc9619a09931ac13904711ebf2721c7b2f355bce /kconfig/symbol.c
parent5263bf8339a07a967f0a923d237e8a36d20439fc (diff)
kconfig: Sync with upstream v5.9
19b835a5db93 kconfig: qconf: fix incomplete type 'struct gstr' warning 163e0c27fead kconfig: remove redundant assignment prompt = prompt d41809ff7af9 kconfig: add 'static' to some file-local data f70f74d15ca8 kconfig: remove '---help---' support Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'kconfig/symbol.c')
-rw-r--r--kconfig/symbol.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/kconfig/symbol.c b/kconfig/symbol.c
index 9363e37..ffa3ec6 100644
--- a/kconfig/symbol.c
+++ b/kconfig/symbol.c
@@ -15,15 +15,21 @@ struct symbol symbol_yes = {
.name = "y",
.curr = { "y", yes },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_mod = {
+};
+
+struct symbol symbol_mod = {
.name = "m",
.curr = { "m", mod },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_no = {
+};
+
+struct symbol symbol_no = {
.name = "n",
.curr = { "n", no },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_empty = {
+};
+
+static struct symbol symbol_empty = {
.name = "",
.curr = { "", no },
.flags = SYMBOL_VALID,
@@ -31,7 +37,7 @@ struct symbol symbol_yes = {
struct symbol *sym_defconfig_list;
struct symbol *modules_sym;
-tristate modules_val;
+static tristate modules_val;
enum symbol_type sym_get_type(struct symbol *sym)
{