projects
/
wrapfs-4.13.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ef14e
)
x86/rtc: Remove duplicate const specifier
author
Colin King
<colin.king@canonical.com>
Wed, 14 Jan 2015 14:07:55 +0000
(14:07 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:03:23 +0000
(15:03 -0700)
commit
d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/rtc.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/rtc.c
b/arch/x86/kernel/rtc.c
index ca9622a25e95a6fa27e668df031dff95a2d8f253..fe3dbfe0c4a5ee9b1fd15aae1f75e6c38952a19d 100644
(file)
--- 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;