linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
@ 2014-06-12  4:30 Viresh Kumar
  2014-06-12  4:34 ` Viresh Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2014-06-12  4:30 UTC (permalink / raw)
  To: linux-arm-kernel

exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS:
Consolidate exynos4 and exynos5 machine files) and generates this warning:

arch/arm/mach-exynos/exynos.c: In function ?exynos_fdt_map_chipid?:
arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ?const? qualifier from pointer target type [enabled by default]

Constify 'reg' to fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 arch/arm/mach-exynos/exynos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
index 90aab4d..b71598a 100644
--- a/arch/arm/mach-exynos/exynos.c
+++ b/arch/arm/mach-exynos/exynos.c
@@ -198,7 +198,7 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname,
 					int depth, void *data)
 {
 	struct map_desc iodesc;
-	__be32 *reg;
+	const __be32 *reg;
 	int len;
 
 	if (!of_flat_dt_is_compatible(node, "samsung,exynos4210-chipid") &&
-- 
2.0.0.rc2

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

* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
  2014-06-12  4:30 [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid() Viresh Kumar
@ 2014-06-12  4:34 ` Viresh Kumar
  2014-06-12  4:49   ` Sachin Kamat
  0 siblings, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2014-06-12  4:34 UTC (permalink / raw)
  To: linux-arm-kernel

Fix Sachin's id, looks like he left Linaro ..

On 12 June 2014 10:00, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS:
> Consolidate exynos4 and exynos5 machine files) and generates this warning:
>
> arch/arm/mach-exynos/exynos.c: In function ?exynos_fdt_map_chipid?:
> arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ?const? qualifier from pointer target type [enabled by default]
>
> Constify 'reg' to fix it.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  arch/arm/mach-exynos/exynos.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
> index 90aab4d..b71598a 100644
> --- a/arch/arm/mach-exynos/exynos.c
> +++ b/arch/arm/mach-exynos/exynos.c
> @@ -198,7 +198,7 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname,
>                                         int depth, void *data)
>  {
>         struct map_desc iodesc;
> -       __be32 *reg;
> +       const __be32 *reg;
>         int len;
>
>         if (!of_flat_dt_is_compatible(node, "samsung,exynos4210-chipid") &&
> --
> 2.0.0.rc2
>

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

* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
  2014-06-12  4:34 ` Viresh Kumar
@ 2014-06-12  4:49   ` Sachin Kamat
  2014-06-23  1:14     ` Kukjin Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Sachin Kamat @ 2014-06-12  4:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Viresh,

On Thu, Jun 12, 2014 at 10:04 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> Fix Sachin's id, looks like he left Linaro ..
>
> On 12 June 2014 10:00, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>> exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS:
>> Consolidate exynos4 and exynos5 machine files) and generates this warning:
>>
>> arch/arm/mach-exynos/exynos.c: In function ?exynos_fdt_map_chipid?:
>> arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ?const? qualifier from pointer target type [enabled by default]
>>
>> Constify 'reg' to fix it.
>>
>> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

I have already posted a patch [1] to fix this.
Kukjin, can you please queue this up.

[1] http://www.spinics.net/lists/arm-kernel/msg328216.html

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

* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
  2014-06-12  4:49   ` Sachin Kamat
@ 2014-06-23  1:14     ` Kukjin Kim
  2014-06-23  3:18       ` Sachin Kamat
  0 siblings, 1 reply; 5+ messages in thread
From: Kukjin Kim @ 2014-06-23  1:14 UTC (permalink / raw)
  To: linux-arm-kernel

Sachin Kamat wrote:
> 
> Hi Viresh,
> 
> On Thu, Jun 12, 2014 at 10:04 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> > Fix Sachin's id, looks like he left Linaro ..
> >
> > On 12 June 2014 10:00, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> >> exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS:
> >> Consolidate exynos4 and exynos5 machine files) and generates this warning:
> >>
> >> arch/arm/mach-exynos/exynos.c: In function ?exynos_fdt_map_chipid?:
> >> arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ?const? qualifier
> from pointer target type [enabled by default]
> >>
> >> Constify 'reg' to fix it.
> >>
> >> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> 
> I have already posted a patch [1] to fix this.
> Kukjin, can you please queue this up.
> 
> [1] http://www.spinics.net/lists/arm-kernel/msg328216.html

+ Arnd

If I remember correctly, it should be queued by Arnd?

Arnd, do you want me to take it?

- Kukjin

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

* [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid()
  2014-06-23  1:14     ` Kukjin Kim
@ 2014-06-23  3:18       ` Sachin Kamat
  0 siblings, 0 replies; 5+ messages in thread
From: Sachin Kamat @ 2014-06-23  3:18 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Jun 23, 2014 at 6:44 AM, Kukjin Kim <kgene.kim@samsung.com> wrote:
> Sachin Kamat wrote:
>>
>> Hi Viresh,
>>
>> On Thu, Jun 12, 2014 at 10:04 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>> > Fix Sachin's id, looks like he left Linaro ..
>> >
>> > On 12 June 2014 10:00, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>> >> exynos_fdt_map_chipid() was recently added with: cbf08b9 (ARM: EXYNOS:
>> >> Consolidate exynos4 and exynos5 machine files) and generates this warning:
>> >>
>> >> arch/arm/mach-exynos/exynos.c: In function ?exynos_fdt_map_chipid?:
>> >> arch/arm/mach-exynos/exynos.c:208:6: warning: assignment discards ?const? qualifier
>> from pointer target type [enabled by default]
>> >>
>> >> Constify 'reg' to fix it.
>> >>
>> >> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>>
>> I have already posted a patch [1] to fix this.
>> Kukjin, can you please queue this up.
>>
>> [1] http://www.spinics.net/lists/arm-kernel/msg328216.html
>
> + Arnd
>
> If I remember correctly, it should be queued by Arnd?
>
> Arnd, do you want me to take it?

This patch has now been merged into 3.16-rc2.

Regards,
Sachin.

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

end of thread, other threads:[~2014-06-23  3:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12  4:30 [PATCH] ARM: exynos: Fix warning by constifying 'reg' in exynos_fdt_map_chipid() Viresh Kumar
2014-06-12  4:34 ` Viresh Kumar
2014-06-12  4:49   ` Sachin Kamat
2014-06-23  1:14     ` Kukjin Kim
2014-06-23  3:18       ` Sachin Kamat

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