summaryrefslogtreecommitdiff
path: root/scripts/kconfig/lkc.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 14:01:10 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-28 14:44:38 +0300
commit979f2b2f7936f4b71a3100baf2d16c8057f027eb (patch)
tree02cc885fdf217e12d7cea210136a04fedf206667 /scripts/kconfig/lkc.h
parent4b31a32caf0a28e4726f1bf267ff8a804ed864e2 (diff)
downloadlinux-979f2b2f7936f4b71a3100baf2d16c8057f027eb.tar.xz
kconfig: remove keyword lookup table entirely
Commit 7a88488bbc23 ("[PATCH] kconfig: use gperf for kconfig keywords") introduced gperf for the keyword lookup. Then, commit bb3290d91695 ("Remove gperf usage from toolchain") killed the gperf use. As a result, the linear keyword search was left behind. If we do not use gperf, there is no reason to have the separate table of the keywords. Move all keywords back to the lexer. I also refactored the lexer to remove the COMMAND and PARAM states. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r--scripts/kconfig/lkc.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 5f4880a12246..ff6b3e414788 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -30,9 +30,6 @@ static inline const char *CONFIG_prefix(void)
#undef CONFIG_
#define CONFIG_ CONFIG_prefix()
-#define TF_COMMAND 0x0001
-#define TF_PARAM 0x0002
-
enum conf_def_mode {
def_default,
def_yes,
@@ -41,12 +38,6 @@ enum conf_def_mode {
def_random
};
-struct kconf_id {
- const char *name;
- int token;
- unsigned int flags;
-};
-
extern int yylineno;
void zconfdump(FILE *out);
void zconf_starthelp(void);