linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mips: warning in net/mac80211/tx.c
@ 2012-11-25 12:23 Arend van Spriel
  2012-11-25 14:01 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Arend van Spriel @ 2012-11-25 12:23 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org

Hi Johannes,

I played with crosstool-ng to compile test our driver for a number of
platforms that it is supposed to work on. The gcc version is 4.7.2.

*mips*:
  CC [M]  net/mac80211/tx.o
net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
net/mac80211/tx.c:1797:22: error: 'chanctx_conf' may be used
uninitialized in this function [-Werror=maybe-uninitialized]

Gr. AvS


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mips: warning in net/mac80211/tx.c
  2012-11-25 12:23 mips: warning in net/mac80211/tx.c Arend van Spriel
@ 2012-11-25 14:01 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-11-25 14:01 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless@vger.kernel.org

On Sun, 2012-11-25 at 13:23 +0100, Arend van Spriel wrote:
> Hi Johannes,
> 
> I played with crosstool-ng to compile test our driver for a number of
> platforms that it is supposed to work on. The gcc version is 4.7.2.
> 
> *mips*:
>   CC [M]  net/mac80211/tx.o
> net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
> net/mac80211/tx.c:1797:22: error: 'chanctx_conf' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]

Yeah it seems to randomly throw this warning under certain
circumstances, sometimes gcc doesn't seem to be able to prove that in
fact it *isn't* used uninitialized.

I think we should just leave the warning though, anything else I could
come up with to suppress it would just cause real ones to be suppressed
as well if somebody changes this code.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-25 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-25 12:23 mips: warning in net/mac80211/tx.c Arend van Spriel
2012-11-25 14:01 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).