* Re: [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
@ 2016-02-08 8:34 ` Carlo Caione
0 siblings, 0 replies; 14+ messages in thread
From: Carlo Caione @ 2016-02-08 8:34 UTC (permalink / raw)
To: Andreas Färber
Cc: linux-arm-kernel, Carlo Caione, Matthias Brugger,
Michael Turquette, Stephen Boyd, open list:COMMON CLK FRAMEWORK,
open list
On Sun, Feb 7, 2016 at 10:13 PM, Andreas Färber <afaerber@suse.de> wrote:
> As preparation for arm64 based mesongxbb, which pulls in this code once
> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
> The loop uses a local unsigned int variable, so adopt that type,
> matching the header.
>
> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> ---
> drivers/clk/meson/clkc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/clkc.c b/drivers/clk/meson/clkc.c
> index c83ae1367abc..d920d410b51d 100644
> --- a/drivers/clk/meson/clkc.c
> +++ b/drivers/clk/meson/clkc.c
> @@ -198,7 +198,7 @@ meson_clk_register_fixed_rate(const struct clk_conf *clk_conf,
> }
>
> void __init meson_clk_register_clks(const struct clk_conf *clk_confs,
> - size_t nr_confs,
> + unsigned int nr_confs,
> void __iomem *clk_base)
> {
> unsigned int i;
Nit: I'd prefer to fix declaration in drivers/clk/meson/clkc.h with
size_t since we are going to use it for array indexing.
Also please, CC linux-meson@googlegroups.com on meson related patches.
Thanks!
--
Carlo Caione
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
@ 2016-02-08 8:34 ` Carlo Caione
0 siblings, 0 replies; 14+ messages in thread
From: Carlo Caione @ 2016-02-08 8:34 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Feb 7, 2016 at 10:13 PM, Andreas F?rber <afaerber@suse.de> wrote:
> As preparation for arm64 based mesongxbb, which pulls in this code once
> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
> The loop uses a local unsigned int variable, so adopt that type,
> matching the header.
>
> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
> Signed-off-by: Andreas F?rber <afaerber@suse.de>
> ---
> drivers/clk/meson/clkc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/clkc.c b/drivers/clk/meson/clkc.c
> index c83ae1367abc..d920d410b51d 100644
> --- a/drivers/clk/meson/clkc.c
> +++ b/drivers/clk/meson/clkc.c
> @@ -198,7 +198,7 @@ meson_clk_register_fixed_rate(const struct clk_conf *clk_conf,
> }
>
> void __init meson_clk_register_clks(const struct clk_conf *clk_confs,
> - size_t nr_confs,
> + unsigned int nr_confs,
> void __iomem *clk_base)
> {
> unsigned int i;
Nit: I'd prefer to fix declaration in drivers/clk/meson/clkc.h with
size_t since we are going to use it for array indexing.
Also please, CC linux-meson at googlegroups.com on meson related patches.
Thanks!
--
Carlo Caione
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
2016-02-08 8:34 ` Carlo Caione
(?)
@ 2016-02-08 8:54 ` Carlo Caione
-1 siblings, 0 replies; 14+ messages in thread
From: Carlo Caione @ 2016-02-08 8:54 UTC (permalink / raw)
To: Carlo Caione
Cc: Andreas Färber, linux-arm-kernel, Matthias Brugger,
Michael Turquette, Stephen Boyd, open list:COMMON CLK FRAMEWORK,
open list
On Mon, Feb 8, 2016 at 9:34 AM, Carlo Caione <carlo@caione.org> wrote:
> On Sun, Feb 7, 2016 at 10:13 PM, Andreas F=C3=A4rber <afaerber@suse.de> w=
rote:
>> As preparation for arm64 based mesongxbb, which pulls in this code once
>> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
>> The loop uses a local unsigned int variable, so adopt that type,
>> matching the header.
>>
>> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller=
")
>> Signed-off-by: Andreas F=C3=A4rber <afaerber@suse.de>
>> ---
>> drivers/clk/meson/clkc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/meson/clkc.c b/drivers/clk/meson/clkc.c
>> index c83ae1367abc..d920d410b51d 100644
>> --- a/drivers/clk/meson/clkc.c
>> +++ b/drivers/clk/meson/clkc.c
>> @@ -198,7 +198,7 @@ meson_clk_register_fixed_rate(const struct clk_conf =
*clk_conf,
>> }
>>
>> void __init meson_clk_register_clks(const struct clk_conf *clk_confs,
>> - size_t nr_confs,
>> + unsigned int nr_confs,
>> void __iomem *clk_base)
>> {
>> unsigned int i;
>
> Nit: I'd prefer to fix declaration in drivers/clk/meson/clkc.h with
> size_t since we are going to use it for array indexing.
On a second thought it's ok since we use i to cycle through clocks.
Acked-by: Carlo Caione <carlo@endlessm.com>
Cheers,
--=20
Carlo Caione
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
@ 2016-02-08 8:54 ` Carlo Caione
0 siblings, 0 replies; 14+ messages in thread
From: Carlo Caione @ 2016-02-08 8:54 UTC (permalink / raw)
To: Carlo Caione
Cc: Andreas Färber, linux-arm-kernel, Matthias Brugger,
Michael Turquette, Stephen Boyd, open list:COMMON CLK FRAMEWORK,
open list
On Mon, Feb 8, 2016 at 9:34 AM, Carlo Caione <carlo@caione.org> wrote:
> On Sun, Feb 7, 2016 at 10:13 PM, Andreas Färber <afaerber@suse.de> wrote:
>> As preparation for arm64 based mesongxbb, which pulls in this code once
>> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
>> The loop uses a local unsigned int variable, so adopt that type,
>> matching the header.
>>
>> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
>> Signed-off-by: Andreas Färber <afaerber@suse.de>
>> ---
>> drivers/clk/meson/clkc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/meson/clkc.c b/drivers/clk/meson/clkc.c
>> index c83ae1367abc..d920d410b51d 100644
>> --- a/drivers/clk/meson/clkc.c
>> +++ b/drivers/clk/meson/clkc.c
>> @@ -198,7 +198,7 @@ meson_clk_register_fixed_rate(const struct clk_conf *clk_conf,
>> }
>>
>> void __init meson_clk_register_clks(const struct clk_conf *clk_confs,
>> - size_t nr_confs,
>> + unsigned int nr_confs,
>> void __iomem *clk_base)
>> {
>> unsigned int i;
>
> Nit: I'd prefer to fix declaration in drivers/clk/meson/clkc.h with
> size_t since we are going to use it for array indexing.
On a second thought it's ok since we use i to cycle through clocks.
Acked-by: Carlo Caione <carlo@endlessm.com>
Cheers,
--
Carlo Caione
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
@ 2016-02-08 8:54 ` Carlo Caione
0 siblings, 0 replies; 14+ messages in thread
From: Carlo Caione @ 2016-02-08 8:54 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Feb 8, 2016 at 9:34 AM, Carlo Caione <carlo@caione.org> wrote:
> On Sun, Feb 7, 2016 at 10:13 PM, Andreas F?rber <afaerber@suse.de> wrote:
>> As preparation for arm64 based mesongxbb, which pulls in this code once
>> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
>> The loop uses a local unsigned int variable, so adopt that type,
>> matching the header.
>>
>> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
>> Signed-off-by: Andreas F?rber <afaerber@suse.de>
>> ---
>> drivers/clk/meson/clkc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/meson/clkc.c b/drivers/clk/meson/clkc.c
>> index c83ae1367abc..d920d410b51d 100644
>> --- a/drivers/clk/meson/clkc.c
>> +++ b/drivers/clk/meson/clkc.c
>> @@ -198,7 +198,7 @@ meson_clk_register_fixed_rate(const struct clk_conf *clk_conf,
>> }
>>
>> void __init meson_clk_register_clks(const struct clk_conf *clk_confs,
>> - size_t nr_confs,
>> + unsigned int nr_confs,
>> void __iomem *clk_base)
>> {
>> unsigned int i;
>
> Nit: I'd prefer to fix declaration in drivers/clk/meson/clkc.h with
> size_t since we are going to use it for array indexing.
On a second thought it's ok since we use i to cycle through clocks.
Acked-by: Carlo Caione <carlo@endlessm.com>
Cheers,
--
Carlo Caione
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
2016-02-08 8:34 ` Carlo Caione
@ 2016-02-08 10:55 ` Andreas Färber
-1 siblings, 0 replies; 14+ messages in thread
From: Andreas Färber @ 2016-02-08 10:55 UTC (permalink / raw)
To: Carlo Caione
Cc: linux-arm-kernel, Matthias Brugger, Michael Turquette,
Stephen Boyd, linux-clk, LKML, linux-meson
Am 08.02.2016 um 09:34 schrieb Carlo Caione:
> On Sun, Feb 7, 2016 at 10:13 PM, Andreas Färber <afaerber@suse.de> wrote:
>> As preparation for arm64 based mesongxbb, which pulls in this code once
>> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
>> The loop uses a local unsigned int variable, so adopt that type,
>> matching the header.
>>
>> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
>> Signed-off-by: Andreas Färber <afaerber@suse.de>
>> ---
>> drivers/clk/meson/clkc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
[...]
> Also please, CC linux-meson@googlegroups.com on meson related patches.
I used scripts/get_maintainer.pl --nogit-fallback on next-20160111. :)
If there is no in-flight patch I've missed, I can send a patch against
MAINTAINERS to update it with that list address.
Cheers,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH] clk: meson: Fix meson_clk_register_clks() signature type mismatch
@ 2016-02-08 10:55 ` Andreas Färber
0 siblings, 0 replies; 14+ messages in thread
From: Andreas Färber @ 2016-02-08 10:55 UTC (permalink / raw)
To: linux-arm-kernel
Am 08.02.2016 um 09:34 schrieb Carlo Caione:
> On Sun, Feb 7, 2016 at 10:13 PM, Andreas F?rber <afaerber@suse.de> wrote:
>> As preparation for arm64 based mesongxbb, which pulls in this code once
>> enabling ARCH_MESON, fix a size_t vs. unsigned int type mismatch.
>> The loop uses a local unsigned int variable, so adopt that type,
>> matching the header.
>>
>> Fixes: 7a29a869434e ("clk: meson: Add support for Meson clock controller")
>> Signed-off-by: Andreas F?rber <afaerber@suse.de>
>> ---
>> drivers/clk/meson/clkc.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
[...]
> Also please, CC linux-meson at googlegroups.com on meson related patches.
I used scripts/get_maintainer.pl --nogit-fallback on next-20160111. :)
If there is no in-flight patch I've missed, I can send a patch against
MAINTAINERS to update it with that list address.
Cheers,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N?rnberg)
^ permalink raw reply [flat|nested] 14+ messages in thread