Skip to contentSkip to conversation

linux-next: build warning after merge of the battery tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 5, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the battery tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe':
drivers/power/supply/axp20x_usb_power.c:297:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  power->axp20x_id = (int)of_device_get_match_data(&pdev->dev);
                     ^

Introduced by commit

0dcc70ca8644 ("power: supply: axp20x_usb_power: use of_device_id data field instead of device_is_compatible")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Quentin,

Quoted 6 lines · Stephen Rothwell

After merging the battery tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe':
drivers/power/supply/axp20x_usb_power.c:297:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
power->axp20x_id = (int)of_device_get_match_data(&pdev->dev);

Can you send a follow-up patch fixing this false-positive warning?

-- Sebastian