Skip to contentSkip to conversation

genksyms: handle va_list type

PATCH New Nicholas Piggin 1 participant 1 message Oct 17, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genksyms: handle va_list type

genksyms currently does not handle va_list (treated as syntax error). Add the __builtin_va_list keyword as a type.

Note: this patch does not regenerate generated parser files.

---
 scripts/genksyms/keywords.gperf | 1 +
 scripts/genksyms/parse.y        | 2 ++
 2 files changed, 3 insertions(+)
scripts/genksyms/keywords.gperf +1 -0
index a9096d9..bd4c4b2 100644
@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW
 __typeof__, TYPEOF_KEYW
 __volatile, VOLATILE_KEYW
 __volatile__, VOLATILE_KEYW
+__builtin_va_list, VA_LIST_KEYW
 # According to rth, c99 defines _Bool, __restrict, __restrict__, restrict.  KAO
 _Bool, BOOL_KEYW
 _restrict, RESTRICT_KEYW
scripts/genksyms/parse.y +2 -0
index 723ab30..4fba255 100644
@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw,
 %token VOID_KEYW
 %token VOLATILE_KEYW
 %token TYPEOF_KEYW
+%token VA_LIST_KEYW
 
 %token EXPORT_SYMBOL_KEYW
 
@@ -261,6 +262,7 @@ simple_type_specifier:
 	| DOUBLE_KEYW
 	| VOID_KEYW
 	| BOOL_KEYW
+	| VA_LIST_KEYW
 	| TYPE			{ (*$1)->tag = SYM_TYPEDEF; $$ = $1; }
 	;
 
Signature · 1 line
2.9.3