diff options
Diffstat (limited to 'kernel/scripts/genksyms/parse.y')
-rw-r--r-- | kernel/scripts/genksyms/parse.y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/scripts/genksyms/parse.y b/kernel/scripts/genksyms/parse.y index b9f4cf202..723ab30fe 100644 --- a/kernel/scripts/genksyms/parse.y +++ b/kernel/scripts/genksyms/parse.y @@ -303,6 +303,15 @@ direct_declarator: $$ = $1; } } + | TYPE + { if (current_name != NULL) { + error_with_pos("unexpected second declaration name"); + YYERROR; + } else { + current_name = (*$1)->string; + $$ = $1; + } + } | direct_declarator '(' parameter_declaration_clause ')' { $$ = $4; } | direct_declarator '(' error ')' |