All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/time/rtc: remove duplicate const specifier
@ 2015-01-14 14:07 Colin King
  2015-01-23  9:39 ` [tip:x86/cleanups] x86/rtc: Remove " tip-bot for Colin King
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2015-01-14 14:07 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 arch/x86/kernel/rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
index ca9622a..fe3dbfe 100644
--- a/arch/x86/kernel/rtc.c
+++ b/arch/x86/kernel/rtc.c
@@ -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;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:x86/cleanups] x86/rtc: Remove duplicate const specifier
  2015-01-14 14:07 [PATCH] x86/time/rtc: remove duplicate const specifier Colin King
@ 2015-01-23  9:39 ` tip-bot for Colin King
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Colin King @ 2015-01-23  9:39 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, colin.king, mingo, linux-kernel, hpa

Commit-ID:  d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e
Gitweb:     http://git.kernel.org/tip/d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e
Author:     Colin King <colin.king@canonical.com>
AuthorDate: Wed, 14 Jan 2015 14:07:55 +0000
Committer:  Thomas Gleixner <tglx@linutronix.de>
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.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://lkml.kernel.org/r/1421244475-313-1-git-send-email-colin.king@canonical.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/x86/kernel/rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
index ca9622a..fe3dbfe 100644
--- a/arch/x86/kernel/rtc.c
+++ b/arch/x86/kernel/rtc.c
@@ -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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-23  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-14 14:07 [PATCH] x86/time/rtc: remove duplicate const specifier Colin King
2015-01-23  9:39 ` [tip:x86/cleanups] x86/rtc: Remove " tip-bot for Colin King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.