* [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
@ 2014-05-23 20:58 Heiko Stübner
2014-05-26 19:10 ` Olof Johansson
2014-05-26 21:21 ` Olof Johansson
0 siblings, 2 replies; 4+ messages in thread
From: Heiko Stübner @ 2014-05-23 20:58 UTC (permalink / raw)
To: linux-arm-kernel
The originally used PNAME macro from the core samsung clock infrastructure
declares the created array as initdata, creating section mismatch warnings
in the dclk driver.
Thus declare them directly, removing these warning.
Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
This should probably go though the samsung tree / arm-soc, as the
offending patch is also in there.
drivers/clk/samsung/clk-s3c2410-dclk.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c
index 8d8dff0..c1726f4 100644
--- a/drivers/clk/samsung/clk-s3c2410-dclk.c
+++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
@@ -135,26 +135,26 @@ struct s3c24xx_dclk {
#define to_s3c24xx_dclk1(x) \
container_of(x, struct s3c24xx_dclk, dclk1_div_change_nb)
-PNAME(dclk_s3c2410_p) = { "pclk", "uclk" };
-PNAME(clkout0_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
+static const char *dclk_s3c2410_p[] = { "pclk", "uclk" };
+static const char *clkout0_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
"gate_dclk0" };
-PNAME(clkout1_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
+static const char *clkout1_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
"gate_dclk1" };
-PNAME(clkout0_s3c2412_p) = { "mpll", "upll", "rtc_clkout",
+static const char *clkout0_s3c2412_p[] = { "mpll", "upll", "rtc_clkout",
"hclk", "pclk", "gate_dclk0" };
-PNAME(clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
+static const char *clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
"gate_dclk1" };
-PNAME(clkout0_s3c2440_p) = { "xti", "upll", "fclk", "hclk", "pclk",
+static const char *clkout0_s3c2440_p[] = { "xti", "upll", "fclk", "hclk", "pclk",
"gate_dclk0" };
-PNAME(clkout1_s3c2440_p) = { "mpll", "upll", "rtc_clkout",
+static const char *clkout1_s3c2440_p[] = { "mpll", "upll", "rtc_clkout",
"hclk", "pclk", "gate_dclk1" };
-PNAME(dclk_s3c2443_p) = { "pclk", "epll" };
-PNAME(clkout0_s3c2443_p) = { "xti", "epll", "armclk", "hclk", "pclk",
+static const char *dclk_s3c2443_p[] = { "pclk", "epll" };
+static const char *clkout0_s3c2443_p[] = { "xti", "epll", "armclk", "hclk", "pclk",
"gate_dclk0" };
-PNAME(clkout1_s3c2443_p) = { "dummy", "epll", "rtc_clkout",
+static const char *clkout1_s3c2443_p[] = { "dummy", "epll", "rtc_clkout",
"hclk", "pclk", "gate_dclk1" };
#define DCLKCON_DCLK_DIV_MASK 0xf
--
1.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
2014-05-23 20:58 [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata Heiko Stübner
@ 2014-05-26 19:10 ` Olof Johansson
2014-05-26 21:21 ` Olof Johansson
1 sibling, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2014-05-26 19:10 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 23, 2014 at 10:58:53PM +0200, Heiko St?bner wrote:
> The originally used PNAME macro from the core samsung clock infrastructure
> declares the created array as initdata, creating section mismatch warnings
> in the dclk driver.
>
> Thus declare them directly, removing these warning.
>
> Reported-by: Olof Johansson <olof@lixom.net>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
> This should probably go though the samsung tree / arm-soc, as the
> offending patch is also in there.
Applied on top of next/cleanup.
-Olof
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
2014-05-23 20:58 [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata Heiko Stübner
2014-05-26 19:10 ` Olof Johansson
@ 2014-05-26 21:21 ` Olof Johansson
2014-05-27 7:19 ` Heiko Stübner
1 sibling, 1 reply; 4+ messages in thread
From: Olof Johansson @ 2014-05-26 21:21 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 23, 2014 at 10:58:53PM +0200, Heiko St?bner wrote:
> The originally used PNAME macro from the core samsung clock infrastructure
> declares the created array as initdata, creating section mismatch warnings
> in the dclk driver.
>
> Thus declare them directly, removing these warning.
>
> Reported-by: Olof Johansson <olof@lixom.net>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
> This should probably go though the samsung tree / arm-soc, as the
> offending patch is also in there.
>
> drivers/clk/samsung/clk-s3c2410-dclk.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c
> index 8d8dff0..c1726f4 100644
> --- a/drivers/clk/samsung/clk-s3c2410-dclk.c
> +++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
> @@ -135,26 +135,26 @@ struct s3c24xx_dclk {
> #define to_s3c24xx_dclk1(x) \
> container_of(x, struct s3c24xx_dclk, dclk1_div_change_nb)
>
> -PNAME(dclk_s3c2410_p) = { "pclk", "uclk" };
> -PNAME(clkout0_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
> +static const char *dclk_s3c2410_p[] = { "pclk", "uclk" };
> +static const char *clkout0_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
> "gate_dclk0" };
> -PNAME(clkout1_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
> +static const char *clkout1_s3c2410_p[] = { "mpll", "upll", "fclk", "hclk", "pclk",
> "gate_dclk1" };
>
> -PNAME(clkout0_s3c2412_p) = { "mpll", "upll", "rtc_clkout",
> +static const char *clkout0_s3c2412_p[] = { "mpll", "upll", "rtc_clkout",
> "hclk", "pclk", "gate_dclk0" };
> -PNAME(clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
> +static const char *clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
> "gate_dclk1" };
Fixed up this error in a separate commit, since it caused a build failure.
In other words, please build test your fixes before you send them. :)
-Olof
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
2014-05-26 21:21 ` Olof Johansson
@ 2014-05-27 7:19 ` Heiko Stübner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2014-05-27 7:19 UTC (permalink / raw)
To: linux-arm-kernel
Am Montag, 26. Mai 2014, 14:21:19 schrieb Olof Johansson:
> On Fri, May 23, 2014 at 10:58:53PM +0200, Heiko St?bner wrote:
> > The originally used PNAME macro from the core samsung clock infrastructure
> > declares the created array as initdata, creating section mismatch warnings
> > in the dclk driver.
> >
> > Thus declare them directly, removing these warning.
> >
> > Reported-by: Olof Johansson <olof@lixom.net>
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> > This should probably go though the samsung tree / arm-soc, as the
> > offending patch is also in there.
> >
> > drivers/clk/samsung/clk-s3c2410-dclk.c | 20 ++++++++++----------
> > 1 file changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c
> > b/drivers/clk/samsung/clk-s3c2410-dclk.c index 8d8dff0..c1726f4 100644
> > --- a/drivers/clk/samsung/clk-s3c2410-dclk.c
> > +++ b/drivers/clk/samsung/clk-s3c2410-dclk.c
> > @@ -135,26 +135,26 @@ struct s3c24xx_dclk {
> >
> > #define to_s3c24xx_dclk1(x) \
> >
> > container_of(x, struct s3c24xx_dclk, dclk1_div_change_nb)
> >
> > -PNAME(dclk_s3c2410_p) = { "pclk", "uclk" };
> > -PNAME(clkout0_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
> > +static const char *dclk_s3c2410_p[] = { "pclk", "uclk" };
> > +static const char *clkout0_s3c2410_p[] = { "mpll", "upll", "fclk",
> > "hclk", "pclk",>
> > "gate_dclk0" };
> >
> > -PNAME(clkout1_s3c2410_p) = { "mpll", "upll", "fclk", "hclk", "pclk",
> > +static const char *clkout1_s3c2410_p[] = { "mpll", "upll", "fclk",
> > "hclk", "pclk",>
> > "gate_dclk1" };
> >
> > -PNAME(clkout0_s3c2412_p) = { "mpll", "upll", "rtc_clkout",
> > +static const char *clkout0_s3c2412_p[] = { "mpll", "upll", "rtc_clkout",
> >
> > "hclk", "pclk", "gate_dclk0" };
> >
> > -PNAME(clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk", "pclk",
> > +static const char *clkout1_s3c2412_p) = { "xti", "upll", "fclk", "hclk",
> > "pclk",>
> > "gate_dclk1" };
>
> Fixed up this error in a separate commit, since it caused a build failure.
>
> In other words, please build test your fixes before you send them. :)
sorry about that. I was so sure I did build test it, but when checking again
now it in fact didn't build.
So sorry again
Heiko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-27 7:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 20:58 [PATCH] clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata Heiko Stübner
2014-05-26 19:10 ` Olof Johansson
2014-05-26 21:21 ` Olof Johansson
2014-05-27 7:19 ` Heiko Stübner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).