lkml.org 
[lkml]   [2019]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux-next: build warning after merge of the leds tree
From
Date
Hi Stephen,

Thank you for the report.

On 3/19/19 3:58 AM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the leds tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/leds/leds-pca9532.c: In function 'pca9532_probe':
> drivers/leds/leds-pca9532.c:536:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> devid = (int)of_id->data;
> ^

Applied the fixup to the original commit, which missed to carry
the cast properly from the previous state of code.

- devid = (int)of_id->data;
+ devid = (int)(uintptr_t) of_id->data;


> Introduced by commit
>
> 6b788fae618c ("leds: fix a potential NULL pointer dereference")
>

--
Best regards,
Jacek Anaszewski

\
 
 \ /
  Last update: 2019-03-19 20:55    [W:0.039 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site