WSL2-Linux-Kernel/drivers/staging
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
..
android staging: android: ion: Remove whitespace before quoted newline 2017-04-28 11:40:07 +02:00
board
clocking-wizard
comedi staging: comedi: addi_apci_3xxx: check return value 2017-04-25 20:43:42 +02:00
dgnc staging: dgnc: remove error message task 2017-03-29 09:37:10 +02:00
emxx_udc staging: emxx_udc: Add comment for spinlock_t definition. 2017-03-09 14:13:51 +01:00
fbtft staging: fbtft: fix open parentheses alignment 2017-04-28 12:07:25 +02:00
fsl-mc staging: fsl-mc/dpio: Fix early writing of valid bit 2017-04-08 17:05:59 +02:00
fwserial
gdm724x staging: gdm724x: fix checkpatch.pl camelCase warning 2017-03-16 11:48:59 +09:00
goldfish Staging: goldfish: use __func__ instead of embedded function names 2017-03-17 15:19:09 +09:00
greybus staging: greybus: uart.c: Remove include linux/serial.h 2017-04-18 13:27:16 +02:00
gs_fpgaboot
iio Staging: iio: accel: adis16203: fixed a brace coding style issue 2017-04-14 16:13:34 +01:00
ks7010 staging: ks7010: fix enumeration tags 2017-04-28 11:47:26 +02:00
lustre staging: lustre: remove void function return 2017-04-28 11:45:49 +02:00
media staging/media: make atomisp vlv2_plat_clock explicitly non-modular 2017-04-18 13:27:15 +02:00
most staging: most: aim-sound style fixess 2017-04-25 20:56:15 +02:00
mt29f_spinand
netlogic
nvec Staging: nvec: Remove FSF's mailing address 2017-04-08 12:55:25 +02:00
octeon staging: octeon: remove unused variable 2017-03-08 09:45:07 +01:00
octeon-usb
olpc_dcon staging: olpc_dcon: style fixes 2017-04-28 12:07:24 +02:00
rtl8188eu staging: rtl8188eu: fix sparse signedness warnings in rtw_generate_ie 2017-04-18 13:54:25 +02:00
rtl8192e staging: rtl8192e: Fix embedded function names with __func__ 2017-03-29 09:39:08 +02:00
rtl8192u staging: rtl8192u: fix incorrect type in assignment in ieee80211_tx.c 2017-04-18 13:57:05 +02:00
rtl8712 staging: rtl8712: fixed multiple line derefence issue 2017-04-08 17:05:59 +02:00
rtl8723bs staging: rtl8723bs: rework debug configuration handling 2017-04-28 12:10:51 +02:00
rts5208 staging: rts5208: ms.c fixed checkpatch warning - using __func__ instead of hardcoded name 2017-04-08 17:05:59 +02:00
skein
sm750fb staging: sm750fb: removed line continuations in quoted strings 2017-04-08 17:00:52 +02:00
speakup staging: speakup: add send_xchar and tiocmset methods 2017-04-25 20:45:12 +02:00
unisys staging: unisys: visorhba: fix s-Par to boot with option CONFIG_VMAP_STACK set to y 2017-04-28 11:55:53 +02:00
vc04_services staging: media/platform/bcm2835: remove gstreamer workaround 2017-04-18 13:54:24 +02:00
vme drivers: convert vme_user_vma_priv.refcnt from atomic_t to refcount_t 2017-03-14 06:23:12 +08:00
vt6655 Staging: vt6655 - block comments style fix 2017-03-29 09:39:08 +02:00
vt6656 staging: vt6656: use off stack for in buffer USB transfers. 2017-04-28 12:02:05 +02:00
wilc1000 staging: wilc1000: fix unchecked return value 2017-04-28 12:00:21 +02:00
wlan-ng staging: wlan-ng: break long line in p80211req.c 2017-04-28 12:03:51 +02:00
xgifb staging: xgifb: added blankline after decl. 2017-04-08 17:05:59 +02:00
Kconfig staging: Add rtl8723bs sdio wifi driver 2017-04-08 12:52:39 +02:00
Makefile staging: Add rtl8723bs sdio wifi driver 2017-04-08 12:52:39 +02:00