Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 28, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Kishon,

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

In file included from include/linux/phy/phy.h:19,
from drivers/phy/broadcom/phy-bcm-sr-usb.c:10:
drivers/phy/broadcom/phy-bcm-sr-usb.c: In function 'bcm_usb_phy_probe':
include/linux/device.h:1138:19: warning: 'phy_cfg' may be used uninitialized in this function [-Wmaybe-uninitialized]
dev->driver_data = data;
~~~~~~~~~~~~~~~~~^~~~~~
drivers/phy/broadcom/phy-bcm-sr-usb.c:289:26: note: 'phy_cfg' was declared here

  struct bcm_usb_phy_cfg *phy_cfg;
                          ^~~~~~~

Introduced by commit

a3b96057577c ("phy: sr-usb: Add Stingray USB PHY driver")

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

Hi Stephen,

Thanks for the notice.

I sent patch to fix this warning.
https://www.mail-archive.com/[email protected]/msg1964942.html

Regards,
Srinath.

Quoted 23 lines · Stephen Rothwell

Hi Kishon,

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

In file included from include/linux/phy/phy.h:19,
from drivers/phy/broadcom/phy-bcm-sr-usb.c:10:
drivers/phy/broadcom/phy-bcm-sr-usb.c: In function 'bcm_usb_phy_probe':
include/linux/device.h:1138:19: warning: 'phy_cfg' may be used uninitialized in this function [-Wmaybe-uninitialized]
dev->driver_data = data;
~~~~~~~~~~~~~~~~~^~~~~~
drivers/phy/broadcom/phy-bcm-sr-usb.c:289:26: note: 'phy_cfg' was declared here

  struct bcm_usb_phy_cfg *phy_cfg;
                          ^~~~~~~

Introduced by commit

a3b96057577c ("phy: sr-usb: Add Stingray USB PHY driver")

--
Cheers,
Stephen Rothwell