linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static
@ 2020-09-15 14:01 YueHaibing
  2020-09-15 15:22 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: YueHaibing @ 2020-09-15 14:01 UTC (permalink / raw)
  To: geert+renesas, magnus.damm, yoshihiro.shimoda.uh, yuehaibing
  Cc: linux-renesas-soc, linux-kernel

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 <yuehaibing@huawei.com>
---
 drivers/soc/renesas/r8a779a0-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/renesas/r8a779a0-sysc.c b/drivers/soc/renesas/r8a779a0-sysc.c
index 09dac5742c60..d464ffa1be33 100644
--- a/drivers/soc/renesas/r8a779a0-sysc.c
+++ b/drivers/soc/renesas/r8a779a0-sysc.c
@@ -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),
 };
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static
  2020-09-15 14:01 [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static YueHaibing
@ 2020-09-15 15:22 ` Geert Uytterhoeven
  2020-09-16  1:26   ` Yuehaibing
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-09-15 15:22 UTC (permalink / raw)
  To: YueHaibing
  Cc: Magnus Damm, Yoshihiro Shimoda, Linux-Renesas, Linux Kernel Mailing List

Hi Yue,

On Tue, Sep 15, 2020 at 4:58 PM YueHaibing <yuehaibing@huawei.com> wrote:
> 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 <yuehaibing@huawei.com>

Thanks for your patch!

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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!

> --- a/drivers/soc/renesas/r8a779a0-sysc.c
> +++ b/drivers/soc/renesas/r8a779a0-sysc.c
> @@ -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

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static
  2020-09-15 15:22 ` Geert Uytterhoeven
@ 2020-09-16  1:26   ` Yuehaibing
  2020-09-16  6:59     ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Yuehaibing @ 2020-09-16  1:26 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Magnus Damm, Yoshihiro Shimoda, Linux-Renesas, Linux Kernel Mailing List

On 2020/9/15 23:22, Geert Uytterhoeven wrote:
> Hi Yue,
> 
> On Tue, Sep 15, 2020 at 4:58 PM YueHaibing <yuehaibing@huawei.com> wrote:
>> 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 <yuehaibing@huawei.com>
> 
> Thanks for your patch!
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> 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.
> 
> Thanks again!
> 
>> --- a/drivers/soc/renesas/r8a779a0-sysc.c
>> +++ b/drivers/soc/renesas/r8a779a0-sysc.c
>> @@ -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
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static
  2020-09-16  1:26   ` Yuehaibing
@ 2020-09-16  6:59     ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-09-16  6:59 UTC (permalink / raw)
  To: Yuehaibing
  Cc: Magnus Damm, Yoshihiro Shimoda, Linux-Renesas, Linux Kernel Mailing List

Hi Yue,

On Wed, Sep 16, 2020 at 3:26 AM Yuehaibing <yuehaibing@huawei.com> wrote:
> On 2020/9/15 23:22, Geert Uytterhoeven wrote:
> > On Tue, Sep 15, 2020 at 4:58 PM YueHaibing <yuehaibing@huawei.com> wrote:
> >> 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 <yuehaibing@huawei.com>
> >
> > Thanks for your patch!
> >
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > 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

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-16  7:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 14:01 [PATCH -next] soc: renesas: r8a779a0-sysc: Make r8a779a0_sysc_info static YueHaibing
2020-09-15 15:22 ` Geert Uytterhoeven
2020-09-16  1:26   ` Yuehaibing
2020-09-16  6:59     ` Geert Uytterhoeven

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).