Re: linux-next: build warning after merge of the leds tree
From: Jacek Anaszewski
Date: Tue Mar 19 2019 - 15:53:47 EST
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