Skip to contentSkip to conversation

x86/time/rtc: remove duplicate const specifier

PATCH New Colin King 2 participants 2 messages Jan 14, 2015 – Jan 23, 2015 x86

lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 x86/time/rtc: remove duplicate const specifier

From: Colin Ian King <[email protected]>

Building with clang:

CC arch/x86/kernel/rtc.o
arch/x86/kernel/rtc.c:173:29: warning: duplicate 'const' declaration
specifier [-Wduplicate-decl-specifier]

        static const char * const  const ids[] __initconst =

Remove the duplicate const, it is not needed and causes a warning.

---
 arch/x86/kernel/rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/rtc.c +1 -1
index ca9622a..fe3dbfe 100644
@@ -170,7 +170,7 @@ static struct platform_device rtc_device = {
 static __init int add_rtc_cmos(void)
 {
 #ifdef CONFIG_PNP
-	static const char * const  const ids[] __initconst =
+	static const char * const ids[] __initconst =
 	    { "PNP0b00", "PNP0b01", "PNP0b02", };
 	struct pnp_dev *dev;
 	struct pnp_id *id;
Signature · 1 line
2.1.4
#1 lore raw

[tip:x86/cleanups] x86/rtc: Remove duplicate const specifier

x86/rtc: Remove duplicate const specifier
Commit-ID:  d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e
Gitweb:     http://git.kernel.org/tip/d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e
Author:     Colin King <[email protected]>
AuthorDate: Wed, 14 Jan 2015 14:07:55 +0000
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 23 Jan 2015 10:35:51 +0100

x86/rtc: Remove duplicate const specifier

Building with clang:

CC arch/x86/kernel/rtc.o
arch/x86/kernel/rtc.c:173:29: warning: duplicate 'const' declaration
specifier [-Wduplicate-decl-specifier]

        static const char * const  const ids[] __initconst =

Remove the duplicate const, it is not needed and causes a warning.

---
 arch/x86/kernel/rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/rtc.c +1 -1
index ca9622a..fe3dbfe 100644
@@ -170,7 +170,7 @@ static struct platform_device rtc_device = {
 static __init int add_rtc_cmos(void)
 {
 #ifdef CONFIG_PNP
-	static const char * const  const ids[] __initconst =
+	static const char * const ids[] __initconst =
 	    { "PNP0b00", "PNP0b01", "PNP0b02", };
 	struct pnp_dev *dev;
 	struct pnp_id *id;