drm/i915: make hw page ioremap use ioremap_wc
[linux-2.6-block.git] / scripts / genksyms / parse.y
index ca04c944b7c3f527e19f0591729e4ee6e1abd882..10d7dc724b6d692a3ea283c4e0756798b03f73d6 100644 (file)
@@ -61,6 +61,7 @@ remove_list(struct string_list **pb, struct string_list **pe)
 %token DOUBLE_KEYW
 %token ENUM_KEYW
 %token EXTERN_KEYW
+%token EXTENSION_KEYW
 %token FLOAT_KEYW
 %token INLINE_KEYW
 %token INT_KEYW
@@ -110,7 +111,9 @@ declaration:
        ;
 
 declaration1:
-       TYPEDEF_KEYW { is_typedef = 1; } simple_declaration
+       EXTENSION_KEYW TYPEDEF_KEYW { is_typedef = 1; } simple_declaration
+               { $$ = $4; }
+       | TYPEDEF_KEYW { is_typedef = 1; } simple_declaration
                { $$ = $3; }
        | simple_declaration
        | function_definition
@@ -443,7 +446,7 @@ member_bitfield_declarator:
 
 attribute_opt:
        /* empty */                                     { $$ = NULL; }
-       | ATTRIBUTE_PHRASE
+       | attribute_opt ATTRIBUTE_PHRASE
        ;
 
 asm_definition: