Re: linux-next: build warning after merge of the mfd tree

From: Lee Jones
Date: Thu Nov 30 2017 - 03:28:43 EST


On Thu, 30 Nov 2017, Stephen Rothwell wrote:

> Hi Lee,
>
> After merging the mfd tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> drivers/leds/leds-pm8058.c: In function 'pm8058_led_probe':
> drivers/leds/leds-pm8058.c:109:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> led->ledtype = (u32)of_device_get_match_data(&pdev->dev);

Linuuuuusssssss ...

Please fix. I'm happy to squash.

> Exposed by commit
>
> deed10c2d603 ("mfd: pm8xxx: Make elegible for COMPILE_TEST")
>
> CONFIG_LEDS_PM8058 depends on CONFIG_MFD_PM8XXX which is now turned on
> by allmodconfig.
>
> The actual problematic commit is:
>
> 7f866986e705 ("leds: add PM8058 LEDs driver")
>
> from v4.9-rc1.
>

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog