linux/drivers/staging/rtl8188eu/include
Larry Finger 40fac5a132 staging: r8188eu: Fix compiler warnings in os_dep/ioctl_linux.c
The 0-DAY kernel build testing backend reports the following compiler
warnings not shown on my compiler version/options:

   drivers/staging/rtl8188eu/os_dep/ioctl_linux.c: In function 'rtw_mp_efuse_get':
>> drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:5836:65: warning: iteration 16u invokes undefined behavior [-Waggressive-loop-optimizations]
        sprintf(extra, "%s%02X ", extra, pEfuseHal->fakeEfuseInitMap[i+j]);
                                                                    ^
   drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:5830:3: note: containing loop
      for (i = 0; i < EFUSE_MAP_SIZE; i += 16) {
      ^
>> drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:6042:69: warning: iteration 16u invokes undefined behavior [-Waggressive-loop-optimizations]
        sprintf(extra, "%s %02X", extra, pEfuseHal->fakeEfuseModifiedMap[i+j]);
                                                                        ^
   drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:6036:3: note: containing loop
      for (i = 0; i < EFUSE_MAP_SIZE; i += 16) {
      ^

The problem is due to improper settings for some of the EFUSE_XXX defines such that
EFUSE_MAP_SIZE was larger than the sizes of the marked arrays. Thanks to
Fengguang Wu for helping me understand the root cause.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-30 11:46:46 -07:00
..
Hal8188EFWImg_CE.h
Hal8188EPhyCfg.h
Hal8188EPhyReg.h
Hal8188EPwrSeq.h
Hal8188ERateAdaptive.h
Hal8188EReg.h
HalHWImg8188E_BB.h
HalHWImg8188E_FW.h
HalHWImg8188E_MAC.h
HalHWImg8188E_RF.h
HalPhyRf.h
HalPhyRf_8188e.h
HalPwrSeqCmd.h
HalVerDef.h
basic_types.h
cmd_osdep.h
drv_types.h staging: rtl8188eu: Remove duplicate incusion in drv_types.h 2013-08-28 15:17:35 -07:00
drv_types_linux.h
ethernet.h
h2clbk.h
hal_com.h
hal_intf.h
ieee80211.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
ieee80211_ext.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
if_ether.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
ioctl_cfg80211.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
ip.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
mlme_osdep.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
mp_custom_oid.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
nic_spec.h staging: r8188eu: Add files for new driver - part 23 2013-08-22 10:20:11 -07:00
odm.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_HWConfig.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_RTL8188E.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_RegConfig8188E.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_RegDefine11AC.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_RegDefine11N.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_debug.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_interface.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_precomp.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_reg.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
odm_types.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
osdep_intf.h staging: r8188eu: Add files for new driver - part 24 2013-08-22 10:20:12 -07:00
osdep_service.h staging: rtl8188eu: Remove version.h inclusion in osdep_service.h 2013-08-28 15:17:35 -07:00
recv_osdep.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_cmd.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_dm.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_hal.h staging: r8188eu: Fix compiler warnings in os_dep/ioctl_linux.c 2013-08-30 11:46:46 -07:00
rtl8188e_led.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_recv.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_rf.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_spec.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_sreset.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtl8188e_xmit.h staging: r8188eu: Add files for new driver - part 25 2013-08-22 10:20:12 -07:00
rtw_android.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_ap.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_br_ext.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_cmd.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_debug.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_eeprom.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_efuse.h staging: r8188eu: Fix compiler warnings in os_dep/ioctl_linux.c 2013-08-30 11:46:46 -07:00
rtw_event.h staging: r8188eu: Add files for new driver - part 26 2013-08-22 10:20:12 -07:00
rtw_ht.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_io.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_ioctl.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_ioctl_rtl.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_ioctl_set.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_iol.h staging: r8188eu: Add files for new driver - part 27 2013-08-22 10:20:12 -07:00
rtw_led.h staging: r8188eu: Fix build errors for allyesconfig 2013-08-25 10:21:01 -07:00
rtw_mlme.h staging: r8188eu: Add files for new driver - part 28 2013-08-22 10:20:12 -07:00
rtw_mlme_ext.h staging: r8188eu: Add files for new driver - part 28 2013-08-22 10:20:12 -07:00
rtw_mp.h staging: r8188eu: Add files for new driver - part 28 2013-08-22 10:20:12 -07:00
rtw_mp_ioctl.h staging: r8188eu: Fix build errors for allyesconfig 2013-08-25 10:21:01 -07:00
rtw_mp_phy_regdef.h staging: r8188eu: Add files for new driver - part 28 2013-08-22 10:20:12 -07:00
rtw_p2p.h staging: r8188eu: Add files for new driver - part 29 2013-08-22 10:20:12 -07:00
rtw_pwrctrl.h staging: r8188eu: Add files for new driver - part 29 2013-08-22 10:20:12 -07:00
rtw_qos.h staging: r8188eu: Add files for new driver - part 29 2013-08-22 10:20:12 -07:00
rtw_recv.h staging: r8188eu: Add files for new driver - part 29 2013-08-22 10:20:12 -07:00
rtw_rf.h staging: r8188eu: Add files for new driver - part 29 2013-08-22 10:20:12 -07:00
rtw_security.h staging: r8188eu: Add files for new driver - part 30 2013-08-22 10:20:13 -07:00
rtw_sreset.h staging: r8188eu: Add files for new driver - part 30 2013-08-22 10:20:13 -07:00
rtw_version.h staging: r8188eu: Add files for new driver - part 30 2013-08-22 10:20:13 -07:00
rtw_xmit.h staging: r8188eu: Add files for new driver - part 30 2013-08-22 10:20:13 -07:00
sta_info.h staging: r8188eu: Fix build error with random configuration 2013-08-27 17:00:46 -07:00
usb_hal.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
usb_ops.h staging: rtl8188eu: Include version.h in usb_ops.h 2013-08-28 15:17:35 -07:00
usb_ops_linux.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
usb_osintf.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
usb_vendor_req.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
wifi.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
wlan_bssdef.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00
xmit_osdep.h staging: r8188eu: Add files for new driver - part 31 2013-08-22 10:20:31 -07:00