Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: rtl871x_mp_ioctl: Remove a bunch of unused tables

Fixes the following W=1 kernel build warning(s):

drivers/staging/rtl8712/rtl871x_mp_ioctl.h:256:34: warning: ‘oid_rtl_seg_81_85’ defined but not used [-Wunused-const-variable=]
drivers/staging/rtl8712/rtl871x_mp_ioctl.h:249:34: warning: ‘oid_rtl_seg_81_80_80’ defined but not used [-Wunused-const-variable=]
drivers/staging/rtl8712/rtl871x_mp_ioctl.h:240:34: warning: ‘oid_rtl_seg_81_80_40’ defined but not used [-Wunused-const-variable=]
drivers/staging/rtl8712/rtl871x_mp_ioctl.h:205:34: warning: ‘oid_rtl_seg_81_80_20’ defined but not used [-Wunused-const-variable=]
drivers/staging/rtl8712/rtl871x_mp_ioctl.h:138:34: warning: ‘oid_rtl_seg_81_80_00’ defined but not used [-Wunused-const-variable=]

Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: WLAN FAE <wlanfae@realtek.com>
Cc: linux-staging@lists.linux.dev
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210414181129.1628598-13-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
02d06dd5 4c98e73f

-127
-127
drivers/staging/rtl8712/rtl871x_mp_ioctl.h
··· 135 135 struct oid_par_priv *poid_par_priv); 136 136 #ifdef _RTL871X_MP_IOCTL_C_ /* CAUTION!!! */ 137 137 /* This ifdef _MUST_ be left in!! */ 138 - static const struct oid_obj_priv oid_rtl_seg_81_80_00[] = { 139 - /* 0x00 OID_RT_PRO_RESET_DUT */ 140 - {1, oid_null_function}, 141 - /* 0x01 */ 142 - {1, oid_rt_pro_set_data_rate_hdl}, 143 - /* 0x02 */ 144 - {1, oid_rt_pro_start_test_hdl}, 145 - /* 0x03 */ 146 - {1, oid_rt_pro_stop_test_hdl}, 147 - /* 0x04 OID_RT_PRO_SET_PREAMBLE */ 148 - {1, oid_null_function}, 149 - /* 0x05 OID_RT_PRO_SET_SCRAMBLER */ 150 - {1, oid_null_function}, 151 - /* 0x06 OID_RT_PRO_SET_FILTER_BB */ 152 - {1, oid_null_function}, 153 - /* 0x07 OID_RT_PRO_SET_MANUAL_DIVERS_BB */ 154 - {1, oid_null_function}, 155 - /* 0x08 */ 156 - {1, oid_rt_pro_set_channel_direct_call_hdl}, 157 - /* 0x09 OID_RT_PRO_SET_SLEEP_MODE_DIRECT_CALL */ 158 - {1, oid_null_function}, 159 - /* 0x0A OID_RT_PRO_SET_WAKE_MODE_DIRECT_CALL */ 160 - {1, oid_null_function}, 161 - /* 0x0B OID_RT_PRO_SET_TX_CONTINUOUS_DIRECT_CALL */ 162 - {1, oid_rt_pro_set_continuous_tx_hdl}, 163 - /* 0x0C OID_RT_PRO_SET_SINGLE_CARRIER_TX_CONTINUOUS */ 164 - {1, oid_rt_pro_set_single_carrier_tx_hdl}, 165 - /* 0x0D OID_RT_PRO_SET_TX_ANTENNA_BB */ 166 - {1, oid_null_function}, 167 - /* 0x0E */ 168 - {1, oid_rt_pro_set_antenna_bb_hdl}, 169 - /* 0x0F OID_RT_PRO_SET_CR_SCRAMBLER */ 170 - {1, oid_null_function}, 171 - /* 0x10 OID_RT_PRO_SET_CR_NEW_FILTER */ 172 - {1, oid_null_function}, 173 - /* 0x11 OID_RT_PRO_SET_TX_POWER_CONTROL */ 174 - {1, oid_rt_pro_set_tx_power_control_hdl}, 175 - /* 0x12 OID_RT_PRO_SET_CR_TX_CONFIG */ 176 - {1, oid_null_function}, 177 - /* 0x13 OID_RT_PRO_GET_TX_POWER_CONTROL */ 178 - {1, oid_null_function}, 179 - /* 0x14 OID_RT_PRO_GET_CR_SIGNAL_QUALITY */ 180 - {1, oid_null_function}, 181 - /* 0x15 OID_RT_PRO_SET_CR_SETPOINT */ 182 - {1, oid_null_function}, 183 - /* 0x16 OID_RT_PRO_SET_INTEGRATOR */ 184 - {1, oid_null_function}, 185 - /* 0x17 OID_RT_PRO_SET_SIGNAL_QUALITY */ 186 - {1, oid_null_function}, 187 - /* 0x18 OID_RT_PRO_GET_INTEGRATOR */ 188 - {1, oid_null_function}, 189 - /* 0x19 OID_RT_PRO_GET_SIGNAL_QUALITY */ 190 - {1, oid_null_function}, 191 - /* 0x1A OID_RT_PRO_QUERY_EEPROM_TYPE */ 192 - {1, oid_null_function}, 193 - /* 0x1B OID_RT_PRO_WRITE_MAC_ADDRESS */ 194 - {1, oid_null_function}, 195 - /* 0x1C OID_RT_PRO_READ_MAC_ADDRESS */ 196 - {1, oid_null_function}, 197 - /* 0x1D OID_RT_PRO_WRITE_CIS_DATA */ 198 - {1, oid_null_function}, 199 - /* 0x1E OID_RT_PRO_READ_CIS_DATA */ 200 - {1, oid_null_function}, 201 - /* 0x1F OID_RT_PRO_WRITE_POWER_CONTROL */ 202 - {1, oid_null_function} 203 - }; 204 - 205 - static const struct oid_obj_priv oid_rtl_seg_81_80_20[] = { 206 - /* 0x20 OID_RT_PRO_READ_POWER_CONTROL */ 207 - {1, oid_null_function}, 208 - /* 0x21 OID_RT_PRO_WRITE_EEPROM */ 209 - {1, oid_null_function}, 210 - /* 0x22 OID_RT_PRO_READ_EEPROM */ 211 - {1, oid_null_function}, 212 - /* 0x23 */ 213 - {1, oid_rt_pro_reset_tx_packet_sent_hdl}, 214 - /* 0x24 */ 215 - {1, oid_rt_pro_query_tx_packet_sent_hdl}, 216 - /* 0x25 */ 217 - {1, oid_rt_pro_reset_rx_packet_received_hdl}, 218 - /* 0x26 */ 219 - {1, oid_rt_pro_query_rx_packet_received_hdl}, 220 - /* 0x27 */ 221 - {1, oid_rt_pro_query_rx_packet_crc32_error_hdl}, 222 - /* 0x28 OID_RT_PRO_QUERY_CURRENT_ADDRESS */ 223 - {1, oid_null_function}, 224 - /* 0x29 OID_RT_PRO_QUERY_PERMANENT_ADDRESS */ 225 - {1, oid_null_function}, 226 - /* 0x2A OID_RT_PRO_SET_PHILIPS_RF_PARAMETERS */ 227 - {1, oid_null_function}, 228 - /* 0x2B OID_RT_PRO_SET_CARRIER_SUPPRESSION_TX */ 229 - {1, oid_rt_pro_set_carrier_suppression_tx_hdl}, 230 - /* 0x2C OID_RT_PRO_RECEIVE_PACKET */ 231 - {1, oid_null_function}, 232 - /* 0x2D OID_RT_PRO_WRITE_EEPROM_BYTE */ 233 - {1, oid_null_function}, 234 - /* 0x2E OID_RT_PRO_READ_EEPROM_BYTE */ 235 - {1, oid_null_function}, 236 - /* 0x2F */ 237 - {1, oid_rt_pro_set_modulation_hdl} 238 - }; 239 - 240 - static const struct oid_obj_priv oid_rtl_seg_81_80_40[] = { 241 - {1, oid_null_function}, /* 0x40 */ 242 - {1, oid_null_function}, /* 0x41 */ 243 - {1, oid_null_function}, /* 0x42 */ 244 - {1, oid_rt_pro_set_single_tone_tx_hdl}, /* 0x43 */ 245 - {1, oid_null_function}, /* 0x44 */ 246 - {1, oid_null_function} /* 0x45 */ 247 - }; 248 - 249 - static const struct oid_obj_priv oid_rtl_seg_81_80_80[] = { 250 - {1, oid_null_function}, /* 0x80 OID_RT_DRIVER_OPTION */ 251 - {1, oid_null_function}, /* 0x81 OID_RT_RF_OFF */ 252 - {1, oid_null_function} /* 0x82 OID_RT_AUTH_STATUS */ 253 - 254 - }; 255 - 256 - static const struct oid_obj_priv oid_rtl_seg_81_85[] = { 257 - /* 0x00 OID_RT_WIRELESS_MODE */ 258 - {1, oid_rt_wireless_mode_hdl} 259 - }; 260 138 261 139 #else /* _RTL871X_MP_IOCTL_C_ */ 262 - extern struct oid_obj_priv oid_rtl_seg_81_80_00[32]; 263 - extern struct oid_obj_priv oid_rtl_seg_81_80_20[16]; 264 - extern struct oid_obj_priv oid_rtl_seg_81_80_40[6]; 265 - extern struct oid_obj_priv oid_rtl_seg_81_80_80[3]; 266 - extern struct oid_obj_priv oid_rtl_seg_81_85[1]; 267 140 extern struct oid_obj_priv oid_rtl_seg_81_87[5]; 268 141 extern struct oid_obj_priv oid_rtl_seg_87_11_00[32]; 269 142 extern struct oid_obj_priv oid_rtl_seg_87_11_20[5];