OSDN Git Service

[GCC4] fix build error in drivers/char/sonypi.h
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 08:56:16 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 15:19:18 +0000 (17:19 +0200)
This patch fixes this error with gcc 4 :

sonypi.c:56: error: static declaration of 'verbose' follows non-static declaration
sonypi.h:404: error: previous declaration of 'verbose' was here

drivers/char/sonypi.h

index 83a6c5b..2546a39 100644 (file)
@@ -401,8 +401,6 @@ struct sonypi_device {
 #define SONYPI_ACPI_ACTIVE 0
 #endif /* CONFIG_ACPI */
 
-extern int verbose;
-
 static inline int sonypi_ec_write(u8 addr, u8 value) {
 #ifdef CONFIG_ACPI_EC
        if (SONYPI_ACPI_ACTIVE)