aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/genksyms
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2016-11-23 11:41:39 -0500
committerMichal Marek <mmarek@suse.com>2016-11-29 09:53:19 -0500
commit0efdb2282343578474d342816809710681995985 (patch)
tree572aaad222989bf686dd42be087ff8eee87c8002 /scripts/genksyms
parentfe026a851b6bb9a11c27e93b9b15060cb310a3d6 (diff)
kbuild/genksyms: handle va_list type
genksyms currently does not handle va_list. Add the __builtin_va_list keyword as a type. This reduces the amount of syntax errors thrown, but so far no export symbol has a type with a va_list argument, so there is currently no bug in the end result. Note: this patch does not regenerate shipped parser files. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/genksyms')
-rw-r--r--scripts/genksyms/keywords.gperf1
-rw-r--r--scripts/genksyms/parse.y2
2 files changed, 3 insertions, 0 deletions
diff --git a/scripts/genksyms/keywords.gperf b/scripts/genksyms/keywords.gperf
index a9096d993172..bd4c4b235588 100644
--- a/scripts/genksyms/keywords.gperf
+++ b/scripts/genksyms/keywords.gperf
@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW
27__typeof__, TYPEOF_KEYW 27__typeof__, TYPEOF_KEYW
28__volatile, VOLATILE_KEYW 28__volatile, VOLATILE_KEYW
29__volatile__, VOLATILE_KEYW 29__volatile__, VOLATILE_KEYW
30__builtin_va_list, VA_LIST_KEYW
30# According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO 31# According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO
31_Bool, BOOL_KEYW 32_Bool, BOOL_KEYW
32_restrict, RESTRICT_KEYW 33_restrict, RESTRICT_KEYW
diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y
index 723ab30fe9d4..4fba255e54ae 100644
--- a/scripts/genksyms/parse.y
+++ b/scripts/genksyms/parse.y
@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw,
98%token VOID_KEYW 98%token VOID_KEYW
99%token VOLATILE_KEYW 99%token VOLATILE_KEYW
100%token TYPEOF_KEYW 100%token TYPEOF_KEYW
101%token VA_LIST_KEYW
101 102
102%token EXPORT_SYMBOL_KEYW 103%token EXPORT_SYMBOL_KEYW
103 104
@@ -261,6 +262,7 @@ simple_type_specifier:
261 | DOUBLE_KEYW 262 | DOUBLE_KEYW
262 | VOID_KEYW 263 | VOID_KEYW
263 | BOOL_KEYW 264 | BOOL_KEYW
265 | VA_LIST_KEYW
264 | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; } 266 | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; }
265 ; 267 ;
266 268