Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel
[genksyms patch 1/4] parser: fix the __attribute__ rule
 

Index | Next | Previous | View Flat


agruen at suse

Jul 20, 2008, 7:28 PM


Views: 158
Permalink
[genksyms patch 1/4] parser: fix the __attribute__ rule

Gcc __attribute__ definitions may occur repeatedly, e.g.,

static int foo __attribute__((__used__))
__attribute__((aligned (16)));

The genksyms parser does not understand this, and generates a syntax error.
Fix this case.

Signed-off-by: Andreas Gruenbacher <agruen[at]suse.de>

---
scripts/genksyms/parse.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/scripts/genksyms/parse.y
===================================================================
--- a/scripts/genksyms/parse.y
+++ b/scripts/genksyms/parse.y
@@ -446,7 +446,7 @@ member_bitfield_declarator:

attribute_opt:
/* empty */ { $$ = NULL; }
- | ATTRIBUTE_PHRASE
+ | attribute_opt ATTRIBUTE_PHRASE
;

asm_definition:


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Subject User Time
[genksyms patch 1/4] parser: fix the __attribute__ rule agruen at suse Jul 20, 2008, 7:28 PM
    Re: [genksyms patch 1/4] parser: fix the __attribute__ rule sam at ravnborg Jul 30, 2008, 1:43 PM
        Re: [genksyms patch 1/4] parser: fix the __attribute__ rule agruen at suse Jul 30, 2008, 3:03 PM
            Re: [genksyms patch 1/4] parser: fix the __attribute__ rule sam at ravnborg Jul 31, 2008, 2:17 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.