]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8xxxu: hide unused tables
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Apr 2016 21:59:31 +0000 (23:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 21 Apr 2016 12:46:11 +0000 (15:46 +0300)
commit515158ebf05ac08dc14e3ff10a1950d337c05193
tree77f1d5aa376ca0273ba3cee4c01e7d61627f02f9
parentdc1c6f58ec307226a69f8a3623f608e100f4877f
rtl8xxxu: hide unused tables

The references to some arrays in the rtl8xxxu driver were moved inside
of an #ifdef, but the symbols remain outside, resulting in build warnings:

rtl8xxxu/rtl8xxxu.c:1506:33: error: 'rtl8188ru_radioa_1t_highpa_table' defined but not used
rtl8xxxu/rtl8xxxu.c:1431:33: error: 'rtl8192cu_radioa_1t_init_table' defined but not used
rtl8xxxu/rtl8xxxu.c:1407:33: error: 'rtl8192cu_radiob_2t_init_table' defined but not used
rtl8xxxu/rtl8xxxu.c:1332:33: error: 'rtl8192cu_radioa_2t_init_table' defined but not used
rtl8xxxu/rtl8xxxu.c:239:35: error: 'rtl8192c_power_base' defined but not used
rtl8xxxu/rtl8xxxu.c:217:35: error: 'rtl8188r_power_base' defined but not used

This adds an extra #ifdef around them to shut up the warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 1170f6dc40c9 ("rtl8xxxu: Add TX power base values for gen1 parts")
Fixes: 61017b41a229 ("rtl8xxxu: Move PHY RF init into device specific functions")
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c