soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static
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
@@ -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
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?Signed-off-by YueHaibing <[email protected]>
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
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?Signed-off-by YueHaibing <[email protected]>
Quoted 7 lines
Thanks for your patch!
Reviewed-by Geert Uytterhoeven <[email protected]>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
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?Signed-off-by YueHaibing <[email protected]>Thanks for your patch!
Quoted 7 lines
Quoted 5 lines
Reviewed-by Geert Uytterhoeven <[email protected]>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