linux-stable/drivers/staging/rtl8723bs/hal
Arnd Bergmann f55a6d457b staging: rtl8723bs: rework debug configuration handling
I ran into this warning during randconfig testing:

drivers/staging/rtl8723bs/os_dep/rtw_proc.c: In function 'rtw_adapter_proc_deinit':
drivers/staging/rtl8723bs/os_dep/rtw_proc.c:738:25: error: unused variable 'drv_proc' [-Werror=unused-variable]
drivers/staging/rtl8723bs/os_dep/rtw_proc.c: In function 'rtw_adapter_proc_replace':
drivers/staging/rtl8723bs/os_dep/rtw_proc.c:762:25: error: unused variable 'drv_proc' [-Werror=unused-variable]

The problem is that the code procfs code gets built even when CONFIG_PROC_FS
is disabled, but some functions are turned into empty stubs then. This
is easily addressed by adding an #ifdef around the definition of the
CONFIG_PROC_DEBUG macro.

However, I could not bear looking at the macro name that clashes with the
Kconfig name space, so I also renamed it to simply PROC_DEBUG, along with
the other rtl8723bs specific CONFIG_DEBUG_* macros that I renamed the same
way. This is consistent with how we handle the same checks in the non-staging
rtlwifi driver.

As the code path for !CONFIG_PROC_DEBUG had not been tested properly, it
turned out to be incorrect and requires adding 'static inline' annotations
for the stub handlers, and moving some variables around.

Fixes: 554c0a3abf ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-28 12:10:51 +02:00
..
Hal8723BPwrSeq.c
Hal8723BReg.h
HalBtc8723b1Ant.c
HalBtc8723b1Ant.h
HalBtc8723b2Ant.c
HalBtc8723b2Ant.h
HalBtcOutSrc.h staging: rtl8723bs: fix empty-body warning 2017-04-28 12:10:51 +02:00
HalHWImg8723B_BB.c staging: rtl8723bs: Fix indenting problems in hal/HalHWImg8723B_BB.c 2017-04-09 09:26:28 +02:00
HalHWImg8723B_BB.h
HalHWImg8723B_MAC.c
HalHWImg8723B_MAC.h
HalHWImg8723B_RF.c
HalHWImg8723B_RF.h
HalPhyRf.c
HalPhyRf.h
HalPhyRf_8723B.c
HalPhyRf_8723B.h
HalPwrSeqCmd.c
Mp_Precomp.h
hal_btcoex.c
hal_com.c staging: rtl8723bs: Fix indenting problem for hal/hal_com.c 2017-04-09 09:26:28 +02:00
hal_com_phycfg.c staging: rtl8723bs: Fix indening problem in hal/hal_com_phycfg.c 2017-04-09 09:26:28 +02:00
hal_intf.c
hal_phy.c
hal_sdio.c
odm.c
odm.h
odm_AntDiv.c
odm_AntDiv.h
odm_CfoTracking.c
odm_CfoTracking.h
odm_DIG.c
odm_DIG.h
odm_DynamicBBPowerSaving.c
odm_DynamicBBPowerSaving.h
odm_DynamicTxPower.c
odm_DynamicTxPower.h
odm_EdcaTurboCheck.c
odm_EdcaTurboCheck.h
odm_HWConfig.c
odm_HWConfig.h
odm_NoiseMonitor.c
odm_NoiseMonitor.h
odm_PathDiv.c
odm_PathDiv.h
odm_RTL8723B.c
odm_RTL8723B.h
odm_RegConfig8723B.c
odm_RegConfig8723B.h
odm_RegDefine11N.h
odm_debug.c
odm_debug.h staging: rtl8723bs: fix empty-body warning 2017-04-28 12:10:51 +02:00
odm_interface.h
odm_precomp.h
odm_reg.h
odm_types.h
rtl8723b_cmd.c staging: rtl8723bs: rework debug configuration handling 2017-04-28 12:10:51 +02:00
rtl8723b_dm.c
rtl8723b_hal_init.c staging: rtl8723bs: rework debug configuration handling 2017-04-28 12:10:51 +02:00
rtl8723b_phycfg.c
rtl8723b_rf6052.c
rtl8723b_rxdesc.c
rtl8723bs_recv.c
rtl8723bs_xmit.c
sdio_halinit.c
sdio_ops.c staging: rtl8723bs: remove null test before kfree 2017-04-11 07:34:14 +02:00