Wind River Support Network

HomeDefectsLIN8-12933
Fixed

LIN8-12933 : [WARNING] kernel compiling warning "mac80211/mlme.c:2699:3: warning: 'reason_code' may be used uninitialized in this function"

Created: Sep 28, 2020    Updated: Nov 1, 2020
Resolved Date: Oct 29, 2020
Found In Version: 8.0.0.34
Fix Version: 8.0.0.34
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel

Description

CC drivers/md/md.o
 /intel-apollolake-i-64-preempt-rt-glibc-std/bitbake_build/tmp/work-shared/intel-apollolake-i-64/kernel-source/net/mac80211/mlme.c: In function 'ieee80211_sta_rx_queued_mgmt':
 /intel-apollolake-i-64-preempt-rt-glibc-std/bitbake_build/tmp/work-shared/intel-apollolake-i-64/kernel-source/net/mac80211/mlme.c:2699:3: warning: 'reason_code' may be used uninitialized in this function [-Wmaybe-uninitialized]
 ieee80211_tdls_handle_disconnect(sdata, mgmt->sa, reason_code);
 ^
 /intel-apollolake-i-64-preempt-rt-glibc-std/bitbake_build/tmp/work-shared/intel-apollolake-i-64/kernel-source/net/mac80211/mlme.c:2691:6: note: 'reason_code' was declared here
 u16 reason_code;
 ^
 CC fs/nfs/nfs4trace.o
 CC drivers/acpi/acpica/uteval.o
 LD drivers/media/i2c/soc_camera/built-in.o

Steps to Reproduce

$ configure --enable-board=intel-apollolake-i-64 --enable-kernel=preempt-rt --enable-rootfs=glibc-std --enable-checkout-all-layers=yes --enable-rm-oldimgs=yes --with-layer=wr-kernel/kernel-dev
$ make fs
\# then check kernel_log.do_compile
Live chat
Online