Takashi Iwai 693fb0
From df934cbcbff7afbc024bf05f02615917c61f6470 Mon Sep 17 00:00:00 2001
Takashi Iwai 693fb0
From: Arnd Bergmann <arnd@arndb.de>
Takashi Iwai 693fb0
Date: Tue, 20 Feb 2018 16:15:21 +0100
Takashi Iwai 693fb0
Subject: [PATCH] clk: hisilicon: mark wdt_mux_p[] as const
Takashi Iwai 693fb0
Git-commit: df934cbcbff7afbc024bf05f02615917c61f6470
Takashi Iwai 693fb0
Patch-mainline: v4.17-rc1
Takashi Iwai 693fb0
References: bsc#1051510
Takashi Iwai 693fb0
Takashi Iwai 693fb0
The symbol is in the __initconst section but not marked init, which
Takashi Iwai 693fb0
caused a warning when building with LTO.
Takashi Iwai 693fb0
Takashi Iwai 693fb0
This makes it 'const' as was obviously intended.
Takashi Iwai 693fb0
Takashi Iwai 693fb0
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Takashi Iwai 693fb0
Fixes: c80dfd9bf54e ("clk: hisilicon: add CRG driver for Hi3516CV300 SoC")
Takashi Iwai 693fb0
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Takashi Iwai 693fb0
Acked-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 693fb0
Takashi Iwai 693fb0
---
Takashi Iwai 693fb0
 drivers/clk/hisilicon/crg-hi3516cv300.c | 2 +-
Takashi Iwai 693fb0
 1 file changed, 1 insertion(+), 1 deletion(-)
Takashi Iwai 693fb0
Takashi Iwai 693fb0
diff --git a/drivers/clk/hisilicon/crg-hi3516cv300.c b/drivers/clk/hisilicon/crg-hi3516cv300.c
Takashi Iwai 693fb0
index 2007123832bb..53450b651e4c 100644
Takashi Iwai 693fb0
--- a/drivers/clk/hisilicon/crg-hi3516cv300.c
Takashi Iwai 693fb0
+++ b/drivers/clk/hisilicon/crg-hi3516cv300.c
Takashi Iwai 693fb0
@@ -204,7 +204,7 @@ static const struct hisi_crg_funcs hi3516cv300_crg_funcs = {
Takashi Iwai 693fb0
 /* hi3516CV300 sysctrl CRG */
Takashi Iwai 693fb0
 #define HI3516CV300_SYSCTRL_NR_CLKS 16
Takashi Iwai 693fb0
 
Takashi Iwai 693fb0
-static const char *wdt_mux_p[] __initconst = { "3m", "apb" };
Takashi Iwai 693fb0
+static const char *const wdt_mux_p[] __initconst = { "3m", "apb" };
Takashi Iwai 693fb0
 static u32 wdt_mux_table[] = {0, 1};
Takashi Iwai 693fb0
 
Takashi Iwai 693fb0
 static const struct hisi_mux_clock hi3516cv300_sysctrl_mux_clks[] = {
Takashi Iwai 693fb0
-- 
Takashi Iwai 693fb0
2.18.0
Takashi Iwai 693fb0