* [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins'
@ 2020-04-17 9:20 Jason Yan
2020-04-17 9:31 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Jason Yan @ 2020-04-17 9:20 UTC (permalink / raw)
To: renesas, linus.walleij, nishkadg.linux, linux-renesas-soc,
linux-gpio, linux-kernel
Cc: Jason Yan, Hulk Robot
Fix the following gcc warning:
drivers/pinctrl/pinctrl-rza1.c:401:35: warning: ‘rza1l_swio_pins’
defined but not used [-Wunused-const-variable=]
static const struct rza1_swio_pin rza1l_swio_pins[] = {
^~~~~~~~~~~~~~~
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/pinctrl/pinctrl-rza1.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-rza1.c b/drivers/pinctrl/pinctrl-rza1.c
index da2d8365c690..e96bf89b3764 100644
--- a/drivers/pinctrl/pinctrl-rza1.c
+++ b/drivers/pinctrl/pinctrl-rza1.c
@@ -398,15 +398,6 @@ static const struct rza1_bidir_pin rza1l_bidir_pins_p9[] = {
{ .pin = 5, .func = 3 },
};
-static const struct rza1_swio_pin rza1l_swio_pins[] = {
- { .port = 2, .pin = 8, .func = 2, .input = 0 },
- { .port = 5, .pin = 6, .func = 3, .input = 0 },
- { .port = 6, .pin = 6, .func = 3, .input = 0 },
- { .port = 6, .pin = 10, .func = 3, .input = 0 },
- { .port = 7, .pin = 10, .func = 2, .input = 0 },
- { .port = 8, .pin = 2, .func = 3, .input = 0 },
-};
-
static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = {
[1] = { ARRAY_SIZE(rza1l_bidir_pins_p1), rza1l_bidir_pins_p1 },
[3] = { ARRAY_SIZE(rza1l_bidir_pins_p3), rza1l_bidir_pins_p3 },
--
2.21.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins'
2020-04-17 9:20 [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins' Jason Yan
@ 2020-04-17 9:31 ` Geert Uytterhoeven
2020-04-17 10:35 ` Jason Yan
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-04-17 9:31 UTC (permalink / raw)
To: Jason Yan
Cc: Linus Walleij, Nishka Dasgupta, Linux-Renesas,
open list:GPIO SUBSYSTEM, Linux Kernel Mailing List, Hulk Robot,
Chris Brandt
Hi Jason,
On Fri, Apr 17, 2020 at 10:54 AM Jason Yan <yanaijie@huawei.com> wrote:
> Fix the following gcc warning:
>
> drivers/pinctrl/pinctrl-rza1.c:401:35: warning: ‘rza1l_swio_pins’
> defined but not used [-Wunused-const-variable=]
> static const struct rza1_swio_pin rza1l_swio_pins[] = {
> ^~~~~~~~~~~~~~~
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Jason Yan <yanaijie@huawei.com>
Thanks for your patch!
> --- a/drivers/pinctrl/pinctrl-rza1.c
> +++ b/drivers/pinctrl/pinctrl-rza1.c
> @@ -398,15 +398,6 @@ static const struct rza1_bidir_pin rza1l_bidir_pins_p9[] = {
> { .pin = 5, .func = 3 },
> };
>
> -static const struct rza1_swio_pin rza1l_swio_pins[] = {
> - { .port = 2, .pin = 8, .func = 2, .input = 0 },
> - { .port = 5, .pin = 6, .func = 3, .input = 0 },
> - { .port = 6, .pin = 6, .func = 3, .input = 0 },
> - { .port = 6, .pin = 10, .func = 3, .input = 0 },
> - { .port = 7, .pin = 10, .func = 2, .input = 0 },
> - { .port = 8, .pin = 2, .func = 3, .input = 0 },
> -};
> -
> static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = {
> [1] = { ARRAY_SIZE(rza1l_bidir_pins_p1), rza1l_bidir_pins_p1 },
> [3] = { ARRAY_SIZE(rza1l_bidir_pins_p3), rza1l_bidir_pins_p3 },
rza1l_swio_pins[] is unused because rza1l_swio_entries[] refers to the
wrong array. So I'd rather see a patch to fix that instead.
Thanks!
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] pinctrl: rza1: remove unused 'rza1l_swio_pins'
2020-04-17 9:31 ` Geert Uytterhoeven
@ 2020-04-17 10:35 ` Jason Yan
2020-04-17 11:15 ` Chris Brandt
0 siblings, 1 reply; 4+ messages in thread
From: Jason Yan @ 2020-04-17 10:35 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Linus Walleij, Nishka Dasgupta, Linux-Renesas,
open list:GPIO SUBSYSTEM, Linux Kernel Mailing List, Hulk Robot,
Chris Brandt
在 2020/4/17 17:31, Geert Uytterhoeven 写道:
> Hi Jason,
>
> On Fri, Apr 17, 2020 at 10:54 AM Jason Yan <yanaijie@huawei.com> wrote:
>> Fix the following gcc warning:
>>
>> drivers/pinctrl/pinctrl-rza1.c:401:35: warning: ‘rza1l_swio_pins’
>> defined but not used [-Wunused-const-variable=]
>> static const struct rza1_swio_pin rza1l_swio_pins[] = {
>> ^~~~~~~~~~~~~~~
>>
>> Reported-by: Hulk Robot <hulkci@huawei.com>
>> Signed-off-by: Jason Yan <yanaijie@huawei.com>
>
> Thanks for your patch!
>
>> --- a/drivers/pinctrl/pinctrl-rza1.c
>> +++ b/drivers/pinctrl/pinctrl-rza1.c
>> @@ -398,15 +398,6 @@ static const struct rza1_bidir_pin rza1l_bidir_pins_p9[] = {
>> { .pin = 5, .func = 3 },
>> };
>>
>> -static const struct rza1_swio_pin rza1l_swio_pins[] = {
>> - { .port = 2, .pin = 8, .func = 2, .input = 0 },
>> - { .port = 5, .pin = 6, .func = 3, .input = 0 },
>> - { .port = 6, .pin = 6, .func = 3, .input = 0 },
>> - { .port = 6, .pin = 10, .func = 3, .input = 0 },
>> - { .port = 7, .pin = 10, .func = 2, .input = 0 },
>> - { .port = 8, .pin = 2, .func = 3, .input = 0 },
>> -};
>> -
>> static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = {
>> [1] = { ARRAY_SIZE(rza1l_bidir_pins_p1), rza1l_bidir_pins_p1 },
>> [3] = { ARRAY_SIZE(rza1l_bidir_pins_p3), rza1l_bidir_pins_p3 },
>
> rza1l_swio_pins[] is unused because rza1l_swio_entries[] refers to the
> wrong array. So I'd rather see a patch to fix that instead.
>
Thanks for the explanation, I will send a new one.
> Thanks!
>
> Gr{oetje,eeting}s,
>
> Geert
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins'
2020-04-17 10:35 ` Jason Yan
@ 2020-04-17 11:15 ` Chris Brandt
0 siblings, 0 replies; 4+ messages in thread
From: Chris Brandt @ 2020-04-17 11:15 UTC (permalink / raw)
To: Jason Yan, Geert Uytterhoeven
Cc: Linus Walleij, Nishka Dasgupta, Linux-Renesas,
open list:GPIO SUBSYSTEM, Linux Kernel Mailing List, Hulk Robot
On Fri, Apr 17, 2020, Jason Yan wrote:
> >> static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS]
> = {
> >> [1] = { ARRAY_SIZE(rza1l_bidir_pins_p1), rza1l_bidir_pins_p1 },
> >> [3] = { ARRAY_SIZE(rza1l_bidir_pins_p3), rza1l_bidir_pins_p3 },
> >
> > rza1l_swio_pins[] is unused because rza1l_swio_entries[] refers to the
> > wrong array. So I'd rather see a patch to fix that instead.
> >
>
> Thanks for the explanation, I will send a new one.
Looks like that one was my typo.
Thank you Geert for pointing that out!
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-17 11:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 9:20 [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins' Jason Yan
2020-04-17 9:31 ` Geert Uytterhoeven
2020-04-17 10:35 ` Jason Yan
2020-04-17 11:15 ` Chris Brandt
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).