linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]
@ 2014-02-26  2:42 Pankaj Dubey
  2014-03-17  1:22 ` Pankaj Dubey
  0 siblings, 1 reply; 3+ messages in thread
From: Pankaj Dubey @ 2014-02-26  2:42 UTC (permalink / raw)
  To: t.figa, mturquette
  Cc: linux-samsung-soc, linux-arm-kernel, linux-kernel, Pankaj Dubey

When compiled using ARM64 cross compiler, gcc complains as

drivers/clk/samsung/clk.c:293:18:
warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]

Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
---
 drivers/clk/samsung/clk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
index 91bec3e..59142ba 100644
--- a/drivers/clk/samsung/clk.c
+++ b/drivers/clk/samsung/clk.c
@@ -278,7 +278,7 @@ void __init samsung_clk_of_register_fixed_ext(
 	for_each_matching_node_and_match(np, clk_matches, &match) {
 		if (of_property_read_u32(np, "clock-frequency", &freq))
 			continue;
-		fixed_rate_clk[(u32)match->data].fixed_rate = freq;
+		fixed_rate_clk[(unsigned long)match->data].fixed_rate = freq;
 	}
 	samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk);
 }
-- 
1.7.9.5


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

* Re: [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]
  2014-02-26  2:42 [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast] Pankaj Dubey
@ 2014-03-17  1:22 ` Pankaj Dubey
  2014-03-17 13:17   ` Tomasz Figa
  0 siblings, 1 reply; 3+ messages in thread
From: Pankaj Dubey @ 2014-03-17  1:22 UTC (permalink / raw)
  To: Pankaj Dubey
  Cc: t.figa, mturquette, linux-samsung-soc, linux-arm-kernel, linux-kernel

On 02/26/2014 11:42 AM, Pankaj Dubey wrote:
> When compiled using ARM64 cross compiler, gcc complains as
>
> drivers/clk/samsung/clk.c:293:18:
> warning: cast from pointer to integer of different size
> [-Wpointer-to-int-cast]
>
> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
> ---
>   drivers/clk/samsung/clk.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
> index 91bec3e..59142ba 100644
> --- a/drivers/clk/samsung/clk.c
> +++ b/drivers/clk/samsung/clk.c
> @@ -278,7 +278,7 @@ void __init samsung_clk_of_register_fixed_ext(
>   	for_each_matching_node_and_match(np, clk_matches, &match) {
>   		if (of_property_read_u32(np, "clock-frequency", &freq))
>   			continue;
> -		fixed_rate_clk[(u32)match->data].fixed_rate = freq;
> +		fixed_rate_clk[(unsigned long)match->data].fixed_rate = freq;
>   	}
>   	samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk);
>   }

Gentle Ping.

-- 
Best Regards,
Pankaj Dubey


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

* Re: [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast]
  2014-03-17  1:22 ` Pankaj Dubey
@ 2014-03-17 13:17   ` Tomasz Figa
  0 siblings, 0 replies; 3+ messages in thread
From: Tomasz Figa @ 2014-03-17 13:17 UTC (permalink / raw)
  To: Pankaj Dubey
  Cc: mturquette, linux-samsung-soc, linux-arm-kernel, linux-kernel

Hi Pankaj,

On 17.03.2014 02:22, Pankaj Dubey wrote:
> On 02/26/2014 11:42 AM, Pankaj Dubey wrote:
>> When compiled using ARM64 cross compiler, gcc complains as
>>
>> drivers/clk/samsung/clk.c:293:18:
>> warning: cast from pointer to integer of different size
>> [-Wpointer-to-int-cast]
>>
>> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
>> ---
>>   drivers/clk/samsung/clk.c |    2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c
>> index 91bec3e..59142ba 100644
>> --- a/drivers/clk/samsung/clk.c
>> +++ b/drivers/clk/samsung/clk.c
>> @@ -278,7 +278,7 @@ void __init samsung_clk_of_register_fixed_ext(
>>       for_each_matching_node_and_match(np, clk_matches, &match) {
>>           if (of_property_read_u32(np, "clock-frequency", &freq))
>>               continue;
>> -        fixed_rate_clk[(u32)match->data].fixed_rate = freq;
>> +        fixed_rate_clk[(unsigned long)match->data].fixed_rate = freq;
>>       }
>>       samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk);
>>   }
>
> Gentle Ping.

Missed this patch, thanks. Applied for v3.15.

Best regards,
Tomasz

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

end of thread, other threads:[~2014-03-17 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-26  2:42 [PATCH] clk: samsung: fixed compiler warning [-Wpointer-to-int-cast] Pankaj Dubey
2014-03-17  1:22 ` Pankaj Dubey
2014-03-17 13:17   ` Tomasz Figa

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