diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-19 20:17:02 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-19 21:02:53 +0300 |
commit | bb3290d91695bb1ae78ab86f18fb4d7ad8e5ebcc (patch) | |
tree | 0e50ccf15e0ad847395593ce8e4b1b4c6eb50031 /scripts/genksyms/lex.lex.c_shipped | |
parent | 58d4e450a490d5f02183f6834c12550ba26d3b47 (diff) | |
download | linux-bb3290d91695bb1ae78ab86f18fb4d7ad8e5ebcc.tar.xz |
Remove gperf usage from toolchain
It turns out that gperf-3.1 changed types in the generated code in ways
that aren't even trivially detectable without having to generate a test-file.
It's just not worth using tools and libraries from clowns that don't
understand or care about compatibility. So get rid of gperf.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/genksyms/lex.lex.c_shipped')
-rw-r--r-- | scripts/genksyms/lex.lex.c_shipped | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/genksyms/lex.lex.c_shipped b/scripts/genksyms/lex.lex.c_shipped index 985c5541aae4..d5a7474b3e57 100644 --- a/scripts/genksyms/lex.lex.c_shipped +++ b/scripts/genksyms/lex.lex.c_shipped @@ -1905,7 +1905,7 @@ void yyfree (void * ptr ) /* Bring in the keyword recognizer. */ -#include "keywords.hash.c" +#include "keywords.c" /* Macros to append to our phrase collection list. */ @@ -1995,10 +1995,10 @@ repeat: case IDENT: APP; { - const struct resword *r = is_reserved_word(yytext, yyleng); - if (r) + int r = is_reserved_word(yytext, yyleng); + if (r >= 0) { - switch (token = r->token) + switch (token = r) { case ATTRIBUTE_KEYW: lexstate = ST_ATTRIBUTE; |