Thread (3 messages) 3 messages, 3 authors, 2015-11-17

[PATCH] pinctrl: fix qcom ssbi drivers for 64-bit compilation

From: Bjorn Andersson <hidden>
Date: 2015-11-16 18:28:39
Also in: linux-arm-msm, linux-gpio, lkml

On Mon 16 Nov 08:41 PST 2015, Arnd Bergmann wrote:
When building pinctrl-ssbi-gpio and pinctrl-ssbi-mpp for ARM64, we get
a compile warning about invalid types:

drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c: In function 'pm8xxx_gpio_probe':
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c: In function 'pm8xxx_mpp_probe':
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

This changes the code so we cast the pointer to 'unsigned long', which
is the right thing to do here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thanks Arnd,

Reviewed-by: Bjorn Andersson <redacted>

Regards,
Bjorn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help