Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Aug 22, 2017 – Aug 24, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Kishon,

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

drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe':
drivers/phy/ralink/phy-ralink-usb.c:195:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  phy->clk = (u32) match->data;
             ^

Introduced by commit

2411a736ff09 ("phy: ralink-usb: add driver for Mediatek/Ralink")

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

Hi Greg,

Quoted 6 lines · On Tue, 22 Aug 2017 15:07:33 +1000 Stephen Rothwell <[email protected]>…

Hi Kishon,

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

Quoted 8 lines

drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe':
drivers/phy/ralink/phy-ralink-usb.c:195:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  phy->clk = (u32) match->data;
             ^

Introduced by commit

2411a736ff09 ("phy: ralink-usb: add driver for Mediatek/Ralink")

I now get this warning after merging the usb tree ...

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

Stephen,

Quoted 14 lines · Stephen Rothwell

Hi Greg,

Quoted 11 lines · On Tue, 22 Aug 2017 15:07:33 +1000 Stephen Rothwell <[email protected]>…

Hi Kishon,

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

drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe':
drivers/phy/ralink/phy-ralink-usb.c:195:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  phy->clk = (u32) match->data;
             ^
Quoted 5 lines
Quoted 3 lines

Introduced by commit

2411a736ff09 ("phy: ralink-usb: add driver for Mediatek/Ralink")

I now get this warning after merging the usb tree ...

I've now sent a patch from Arnd to fix it.

Thanks
Kishon