Search Linux Wireless

Re: [PATCH] b43: avoid uninitialized variable warnings in phy_n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/29/2011 01:59 PM, John W. Linville wrote:
   CC [M]  drivers/net/wireless/b43/phy_n.o
drivers/net/wireless/b43/phy_n.c: In function âb43_nphy_set_channelâ:
drivers/net/wireless/b43/phy_n.c:3848:47: warning: âtabent_r2â may be used uninitialized in this function
drivers/net/wireless/b43/phy_n.c:3849:47: warning: âtabent_r3â may be used uninitialized in this function
drivers/net/wireless/b43/phy_n.c: In function âb43_nphy_poll_rssi.clone.14â:
drivers/net/wireless/b43/phy_n.c:2270:6: warning: âsave_regs_phy$7â may be used uninitialized in this function
drivers/net/wireless/b43/phy_n.c:2270:6: warning: âsave_regs_phy$8â may be used uninitialized in this function

FWIW, the usage of these variables is goverened by checks that match
their initializations.  So, I think these are actually false warnings.
Still, I would rather avoid the warning SPAM...

Signed-off-by: John W. Linville<linville@xxxxxxxxxxxxx>
---
  drivers/net/wireless/b43/phy_n.c |    7 +++++--
  1 files changed, 5 insertions(+), 2 deletions(-)


If you s/goverened/governed/ in the commit message, then ACK.

For my info, what compiler version and architecture shows these warnings? I don't see them with gcc v4.5.1 on x86_64.

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux