Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557079

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

From Sebastian Reichel <sre@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning
Date 2017-01-12 04:00 +0100
Message-ID <sYDMl-6He-13@gated-at.bofh.it> (permalink)
References <sYsxA-89i-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Arnd,

On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote:
> Casting a pointer to 'int' is not always valid:
> 
> drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe':
> drivers/power/supply/axp20x_usb_power.c:297:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> 
> This makes the code use uintptr_t explicitly.
> 
> Fixes: 0dcc70ca8644 ("power: supply: axp20x_usb_power: use of_device_id data field instead of device_is_compatible")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

I queued Michal's patch instead:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-power-supply.git/commit/?h=for-next&id=15df6d98ec3b40775918fc6ef73d7f1c2d0cf870

-- Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning Arnd Bergmann <arnd@arndb.de> - 2017-01-11 16:00 +0100
  Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning Sebastian Reichel <sre@kernel.org> - 2017-01-12 04:00 +0100
    Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning Arnd Bergmann <arnd@arndb.de> - 2017-01-12 09:40 +0100
      Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning Arnd Bergmann <arnd@arndb.de> - 2017-01-12 17:20 +0100
      Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build  warning Michal Suchánek <msuchanek@suse.de> - 2017-01-12 17:20 +0100
      Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning Sebastian Reichel <sre@kernel.org> - 2017-01-12 18:50 +0100

csiph-web