X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fgenksyms%2Fparse.y;h=723ab30fe9d46951b6106c38bc81b1460c5df342;hb=e91eb6204fb826116453e43d4f5cf0f666bf46fe;hp=b9f4cf202302d46d71e3899fc49f565371975c83;hpb=3de0ef8d0d3350964720cad2a0a72984f1bb81ba;p=karo-tx-linux.git diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index b9f4cf202302..723ab30fe9d4 100644 --- a/scripts/genksyms/parse.y +++ b/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 ')'