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

2019-03-27 Thread Srinath Mannam
Hi Stephen,

Thanks for the notice.

I sent patch to fix this warning.
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1964942.html

Regards,
Srinath.

On Thu, Mar 28, 2019 at 5:59 AM Stephen Rothwell  wrote:
>
> 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


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

2019-03-27 Thread 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


pgpCPIEo_FBqP.pgp
Description: OpenPGP digital signature


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

2017-08-24 Thread Kishon Vijay Abraham I
Stephen,

On Thursday 24 August 2017 10:53 AM, Stephen Rothwell wrote:
> Hi Greg,
> 
> On Tue, 22 Aug 2017 15:07:33 +1000 Stephen Rothwell  
> wrote:
>>
>> 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")
> 
> I now get this warning after merging the usb tree ...

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

Thanks
Kishon


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

2017-08-23 Thread Stephen Rothwell
Hi Greg,

On Tue, 22 Aug 2017 15:07:33 +1000 Stephen Rothwell  
wrote:
>
> 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")

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

-- 
Cheers,
Stephen Rothwell


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

2017-08-21 Thread Stephen Rothwell
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")

-- 
Cheers,
Stephen Rothwell


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

2016-11-16 Thread Kishon Vijay Abraham I
Hi,

On Wednesday 16 November 2016 06:58 PM, wlf wrote:
> Hi Stephen,
> 
> 在 2016年11月16日 11:00, Stephen Rothwell 写道:
>> Hi Kishon,
>>
>> After merging the phy-next tree, today's linux-next build (x86_64
>> allmodconfig) produced this warning:
>>
>> drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work':
>> drivers/phy/phy-rockchip-inno-usb2.c:717:7: warning: 'tmout' may be used
>> uninitialized in this function [-Wmaybe-uninitialized]
>>  if (tmout) {
>> ^
>>
>> Introduced by commit
>>
>>0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399")

Thank you for reporting this issue.

> The variable "tmout" is initialized in the prior  code "case
> USB_CHG_STATE_WAIT_FOR_DCD",
> and this case will be executed before "if (tmout)", so I think it's a
> mis-warning for some
> special compiler.
> 
> Could you provide me some suggestion about this warning? Should I upload a new
> patch to
> fix this compiler mis-warning or just ignore it ? :-)

Arnd has already sent a fix it. I've picked that one.

Thanks
Kishon


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

2016-11-16 Thread wlf

Hi Stephen,

在 2016年11月16日 11:00, Stephen Rothwell 写道:

Hi Kishon,

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

drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work':
drivers/phy/phy-rockchip-inno-usb2.c:717:7: warning: 'tmout' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 if (tmout) {
^

Introduced by commit

   0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399")
The variable "tmout" is initialized in the prior  code "case 
USB_CHG_STATE_WAIT_FOR_DCD",
and this case will be executed before "if (tmout)", so I think it's a 
mis-warning for some

special compiler.

Could you provide me some suggestion about this warning? Should I upload 
a new patch to

fix this compiler mis-warning or just ignore it ? :-)

Best regards,
 wulf








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

2016-11-15 Thread Stephen Rothwell
Hi Kishon,

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

drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work':
drivers/phy/phy-rockchip-inno-usb2.c:717:7: warning: 'tmout' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
if (tmout) {
   ^

Introduced by commit

  0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399")

-- 
Cheers,
Stephen Rothwell