Skip to contentSkip to conversation

mips: warning in net/mac80211/tx.c

DISCUSSION Arend van Spriel 2 participants 2 messages Nov 25, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Arend van Spriel

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