diff options
author | Andrew Morton <akpm@osdl.org> | 2004-04-11 23:02:14 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 23:02:14 -0700 |
commit | f17ea0566ba38378df8e10a5f1f67cf1f6cc2c66 (patch) | |
tree | f84c32ce96f77a1998501530f8701b4300f87e38 /scripts | |
parent | fa79e47badfbf9945c8062dd6174615abfda5a43 (diff) | |
download | history-f17ea0566ba38378df8e10a5f1f67cf1f6cc2c66.tar.gz |
[PATCH] Fix genksyms parsing
From: Rusty Russell <rusty@rustcorp.com.au>
From: Andreas Schwab <schwab@suse.de> I'm getting a warning when building
for ia64 with MODVERSIONS enabled. This is a bug in genksyms, it can't
cope with some arguments of __typeof__.
The following patch will fix that. Actually the argument of __typeof__ is
an abstract declarator, but the genksyms parser has no production for that;
decl_specifier_seq also matches some invalid constructs, but I don't think
this is a problem in practice, since the compiler will reject them.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genksyms/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index 386189f4d108a..099043713db49 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -197,7 +197,7 @@ storage_class_specifier: type_specifier: simple_type_specifier | cvar_qualifier - | TYPEOF_KEYW '(' type_specifier ')' + | TYPEOF_KEYW '(' decl_specifier_seq ')' /* References to s/u/e's defined elsewhere. Rearrange things so that it is easier to expand the definition fully later. */ |