Skip to contentSkip to conversation

soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static

PATCH In review YueHaibing 2 participants 4 messages Sep 15, 2020 – Sep 16, 2020 Arm/RISC-V/Renesas architecture

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static

Fix sparse warning:

drivers/soc/renesas/r8a779a0-sysc.c:99:33: warning: symbol 'r8a779a0_sysc_info' was not declared. Should it be static?

---
 drivers/soc/renesas/r8a779a0-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/renesas/r8a779a0-sysc.c +1 -1
index 09dac5742c60..d464ffa1be33 100644
@@ -96,7 +96,7 @@ static struct r8a779a0_sysc_area r8a779a0_areas[] __initdata = {
 	{ "a1dsp1",	R8A779A0_PD_A1DSP1, R8A779A0_PD_A2CN1 },
 };
 
-const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
+static const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
 	.areas = r8a779a0_areas,
 	.num_areas = ARRAY_SIZE(r8a779a0_areas),
 };
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Yue,

Quoted 5 lines · YueHaibing

Fix sparse warning:

drivers/soc/renesas/r8a779a0-sysc.c:99:33: warning: symbol 'r8a779a0_sysc_info' was not declared. Should it be static?

Thanks for your patch!

As commit 7f29315cf4211316 ("soc: renesas: r8a779a0-sysc: Add r8a779a0 support") hasn't been merged into arm-soc yet, is it OK for you if I just fold your fix into the original commit?

Thanks again!

drivers/soc/renesas/r8a779a0-sysc.c static struct r8a779a0_sysc_area r8a779a0_areas[] __initdata = { · line 102

Quoted 11 lines
drivers/soc/renesas/r8a779a0-sysc.c +1 -1
@@ -96,7 +96,7 @@ static struct r8a779a0_sysc_area r8a779a0_areas[] __initdata = {
        { "a1dsp1",     R8A779A0_PD_A1DSP1, R8A779A0_PD_A2CN1 },
 };
 
-const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
+static const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
        .areas = r8a779a0_areas,
        .num_areas = ARRAY_SIZE(r8a779a0_areas),
 };

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author
#2 lore raw
Quoted 9 lines · Geert Uytterhoeven

Hi Yue,

Quoted 5 lines · YueHaibing

Fix sparse warning:

drivers/soc/renesas/r8a779a0-sysc.c:99:33: warning: symbol 'r8a779a0_sysc_info' was not declared. Should it be static?

Quoted 7 lines

Thanks for your patch!

As commit 7f29315cf4211316 ("soc: renesas: r8a779a0-sysc: Add r8a779a0 support") hasn't been merged into arm-soc yet, is it OK for you if I just fold your fix into the original commit?

Sure, it's ok for me.

Quoted 19 lines

Thanks again!

drivers/soc/renesas/r8a779a0-sysc.c static struct r8a779a0_sysc_area r8a779a0_areas[] __initdata = { · line 102

Quoted 11 lines
drivers/soc/renesas/r8a779a0-sysc.c +1 -1
@@ -96,7 +96,7 @@ static struct r8a779a0_sysc_area r8a779a0_areas[] __initdata = {
        { "a1dsp1",     R8A779A0_PD_A1DSP1, R8A779A0_PD_A2CN1 },
 };
 
-const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
+static const struct r8a779a0_sysc_info r8a779a0_sysc_info __initconst = {
        .areas = r8a779a0_areas,
        .num_areas = ARRAY_SIZE(r8a779a0_areas),
 };

Gr{oetje,eeting}s,

Geert

#3 lore raw

Hi Yue,

Quoted 10 lines · Yuehaibing
Quoted 9 lines · Geert Uytterhoeven
Quoted 5 lines · YueHaibing

Fix sparse warning:

drivers/soc/renesas/r8a779a0-sysc.c:99:33: warning: symbol 'r8a779a0_sysc_info' was not declared. Should it be static?

Thanks for your patch!

Quoted 7 lines
Quoted 5 lines

As commit 7f29315cf4211316 ("soc: renesas: r8a779a0-sysc: Add r8a779a0 support") hasn't been merged into arm-soc yet, is it OK for you if I just fold your fix into the original commit?

Sure, it's ok for me.

Thank you, I've updated the commit in my rrenesas-devel/renesas-drivers-for-v5.10
branch. The renesas-devel/next branch will be updated later.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds