staging: rtl8723bs: remove unused macros
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sun, 1 Aug 2021 13:46:29 +0000 (15:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 10:40:50 +0000 (12:40 +0200)
remove unused macros detected by -Wunused-macros
gcc option.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/20210801134629.23433-1-fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 files changed:
drivers/staging/rtl8723bs/core/rtw_ap.c
drivers/staging/rtl8723bs/core/rtw_debug.c
drivers/staging/rtl8723bs/core/rtw_ieee80211.c
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
drivers/staging/rtl8723bs/core/rtw_rf.c
drivers/staging/rtl8723bs/core/rtw_security.c
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
drivers/staging/rtl8723bs/hal/HalPhyRf.c
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
drivers/staging/rtl8723bs/hal/hal_sdio.c
drivers/staging/rtl8723bs/hal/odm.c
drivers/staging/rtl8723bs/hal/odm_DIG.c
drivers/staging/rtl8723bs/hal/odm_HWConfig.c
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
drivers/staging/rtl8723bs/hal/rtl8723b_dm.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
drivers/staging/rtl8723bs/hal/rtl8723b_rxdesc.c
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c

index b7e1d7817595899e1cad6d5cab9f359d24a6ce79..69a55482e8a07d6a6a2f5a00f8c2274306dfa47f 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTW_AP_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 576b039f741cc50bcae4f1fc079e4c0190032fc6..76ad1122f89f91fbf8883cd1fcca18015c00f251 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTW_DEBUG_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index b7ad4a11a7b709f95c44b47141f1c9caf77546be..795eafb7d6ff4f082c7bd52ddb6c22f1b0be620e 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _IEEE80211_C
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 8914ef3d33c886ab020c0f9513b3bbbed15627c1..0152491455a2a338b84cf2655a67581a3fa457f8 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTW_IOCTL_SET_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index a5095a4ef690df93fb8b24ed3467384738c6291e..96eb8ca380032e2bd41bcc224529797c66c93995 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTW_RF_C_
 
 #include <drv_types.h>
 #include <linux/kernel.h>
index 8b507f6a447e5a13acd760bc6c856730adb28430..b050bf62e3b9478f861d0140112e4e5ab3ea14ad 100644 (file)
@@ -268,11 +268,6 @@ void rtw_seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, u8 *mic_cod
 
 /* fixed algorithm "parameters" */
 #define PHASE1_LOOP_CNT   8    /* this needs to be "big enough"     */
-#define TA_SIZE           6    /*  48-bit transmitter address       */
-#define TK_SIZE          16    /* 128-bit temporal key              */
-#define P1K_SIZE         10    /*  80-bit Phase1 key                */
-#define RC4_KEY_SIZE     16    /* 128-bit RC4KEY (104 bits unknown) */
-
 
 /* 2-unsigned char by 2-unsigned char subset of the full AES S-box table */
 static const unsigned short Sbox1[2][256] = {      /* Sbox for hash (can be in ROM)     */
index 865a82d5cedb0bb22da566f5521bd1ab3aab0ce5..1705369864762be37960cef8e57819c48b573621 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTW_WLAN_UTIL_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
@@ -25,8 +24,6 @@ static unsigned char AIRGOCAP_OUI[] = {0x00, 0x0a, 0xf5};
 static unsigned char RSN_TKIP_CIPHER[4] = {0x00, 0x0f, 0xac, 0x02};
 static unsigned char WPA_TKIP_CIPHER[4] = {0x00, 0x50, 0xf2, 0x02};
 
-#define R2T_PHY_DELAY  (0)
-
 /* define WAIT_FOR_BCN_TO_MIN  (3000) */
 #define WAIT_FOR_BCN_TO_MIN    (6000)
 #define WAIT_FOR_BCN_TO_MAX    (20000)
index 365e1195b5e589a5e08b9ab4f8176b795021c15d..9c6d3bf2f2ea0405588a5c7f1a19edb20ef3a9fe 100644 (file)
@@ -8,21 +8,6 @@
 /* include "Mp_Precomp.h" */
 #include "odm_precomp.h"
 
-
-#define CALCULATE_SWINGTALBE_OFFSET(_offset, _direction, _size, _deltaThermal) \
-       do {\
-               for (_offset = 0; _offset < _size; _offset++) {\
-                       if (_deltaThermal < thermalThreshold[_direction][_offset]) {\
-                               if (_offset != 0)\
-                                       _offset--;\
-                               break;\
-                       } \
-               } \
-               if (_offset >= _size)\
-                       _offset = _size-1;\
-       } while (0)
-
-
 void ConfigureTxpowerTrack(struct dm_odm_t *pDM_Odm, struct txpwrtrack_cfg *pConfig)
 {
        ConfigureTxpowerTrack_8723B(pConfig);
index 8121b8eb45b63862ba1b3bb8aed8598d88718e46..c696569ae5cf430bf27dab547a1aeadd18570d47 100644 (file)
@@ -9,17 +9,10 @@
 #include <rtw_debug.h>
 #include "odm_precomp.h"
 
-
-
-/*---------------------------Define Local Constant---------------------------*/
-/*  2010/04/25 MH Define the max tx power tracking tx agc power. */
-#define                ODM_TXPWRTRACK_MAX_IDX8723B     6
-
 /*  MACRO definition for pRFCalibrateInfo->TxIQC_8723B[0] */
 #define                PATH_S0                                                 1 /*  RF_PATH_B */
 #define                IDX_0xC94                                               0
 #define                IDX_0xC80                                               1
-#define                IDX_0xC4C                                               2
 #define                IDX_0xC14                                               0
 #define                IDX_0xCA0                                               1
 #define                KEY                                                     0
 
 /*  MACRO definition for pRFCalibrateInfo->TxIQC_8723B[1] */
 #define                PATH_S1                                                 0 /*  RF_PATH_A */
-#define                IDX_0xC9C                                               0
-#define                IDX_0xC88                                               1
 #define                IDX_0xC4C                                               2
-#define                IDX_0xC1C                                               0
-#define                IDX_0xC78                                               1
-
 
 /*---------------------------Define Local Constant---------------------------*/
 
@@ -373,7 +361,6 @@ void ConfigureTxpowerTrack_8723B(struct txpwrtrack_cfg *pConfig)
 
 /* 1 7. IQK */
 #define MAX_TOLERANCE          5
-#define IQK_DELAY_TIME         1               /* ms */
 
 /* bit0 = 1 => Tx OK, bit1 = 1 => Rx OK */
 static u8 phy_PathA_IQK_8723B(
@@ -1583,20 +1570,6 @@ static void phy_LCCalibrate_8723B(struct dm_odm_t *pDM_Odm, bool is2T)
                rtw_write8(pDM_Odm->Adapter, REG_TXPAUSE, 0x00);
 }
 
-/* Analog Pre-distortion calibration */
-#define                APK_BB_REG_NUM  8
-#define                APK_CURVE_REG_NUM 4
-#define                PATH_NUM                2
-
-#define                DP_BB_REG_NUM           7
-#define                DP_RF_REG_NUM           1
-#define                DP_RETRY_LIMIT          10
-#define                DP_PATH_NUM     2
-#define                DP_DPK_NUM                      3
-#define                DP_DPK_VALUE_NUM        2
-
-
-
 /* IQK version:V2.5    20140123 */
 /* IQK is controlled by Is2ant, RF path */
 void PHY_IQCalibrate_8723B(
index 6e165d808bbd9ebc19dbf823930f7618aa3f9fe0..f4b3e8b28712c1845ffef5e46fc8bbc6d04a9bf4 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2013 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define __HAL_BTCOEX_C__
 
 #include <hal_data.h>
 #include <rtw_debug.h>
@@ -17,8 +16,6 @@ struct btc_coexist GLBtCoexist;
 static u8 GLBtcWiFiInScanState;
 static u8 GLBtcWiFiInIQKState;
 
-#define        BT_Operation(Adapter)                                           false
-
 /*  */
 /*             Debug related function */
 /*  */
index 0df2b9b61cf82d4f5408d33f1044c2313340dc8a..fbe6b64aa1fb38501c6cb3c4ec271544157eba9a 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _HAL_COM_C_
 
 #include <linux/kernel.h>
 #include <drv_types.h>
index bb7941aee0c472e36f856192c8b6d001fe95c603..4fb2884fce38aae4c85292a05a1ccac2cfe65c8b 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _HAL_COM_PHYCFG_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 2d61b09ebce652639e4093c5f3c0eed4ceb68c7f..9de62a0f5d35bc324c90627342ef601da10ca31b 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _HAL_SDIO_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 68dfb77772b23cd9630f8cadc9771336534dd53b..45fdd51b784e7b8841aef1cfdf9e398879ae80b8 100644 (file)
@@ -281,10 +281,6 @@ u32 TxScalingTable_Jaguar[TXSCALE_TABLE_SIZE] = {
 
 /* Remove Edca by Yu Chen */
 
-
-#define RxDefaultAnt1          0x65a9
-#define RxDefaultAnt2          0x569a
-
 static void odm_CommonInfoSelfInit(struct dm_odm_t *pDM_Odm)
 {
        pDM_Odm->bCckHighPower = (bool) PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG(CCK_RPT_FORMAT, pDM_Odm), ODM_BIT(CCK_RPT_FORMAT, pDM_Odm));
index ef5b48bb01b254626f36aa9d3925cc2cb3fca991..fb932e0618e24f1b4e8c5e0d4a2cc2b9d0d7d038 100644 (file)
@@ -7,8 +7,6 @@
 
 #include "odm_precomp.h"
 
-#define ADAPTIVITY_VERSION "5.0"
-
 void odm_NHMCounterStatisticsInit(void *pDM_VOID)
 {
        struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID;
index 32f7eb952ca83a195859955414cdcbe2bcd99c47..859451810c482a57c212ddfc2871475ddb826672 100644 (file)
@@ -9,8 +9,6 @@
 
 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig_MP_##ic##txt(pDM_Odm))
 #define READ_AND_CONFIG     READ_AND_CONFIG_MP
-#define GET_VERSION_MP(ic, txt) (ODM_GetVersion_MP_##ic##txt())
-#define GET_VERSION(ic, txt) (pDM_Odm->bIsMPChip?GET_VERSION_MP(ic, txt):GET_VERSION_TC(ic, txt))
 
 static u8 odm_QueryRxPwrPercentage(s8 AntPower)
 {
index 853fe758c4a94459d68bebfdec14f6f57c581062..a59ae622f05e674540ccadfd3ff6e68228512a57 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTL8723B_CMD_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 5840a5241fde1d984df48b16d4e4964c6df217d2..54e2a68a08248f0f6baf98c408795b36079bfd25 100644 (file)
@@ -7,8 +7,6 @@
 /*  Description: */
 /*  This file is for 92CE/92CU dynamic mechanism only */
 
-#define _RTL8723B_DM_C_
-
 #include <drv_types.h>
 #include <rtw_debug.h>
 #include <rtl8723b_hal.h>
index d9a2d3e6a56f964a5c8c681690660638655a6bf5..713ee0179dda2f12de3ef8d805028ed03433ae3b 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2013 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _HAL_INIT_C_
 
 #include <linux/firmware.h>
 #include <linux/slab.h>
@@ -598,14 +597,12 @@ static void Hal_GetEfuseDefinition(
 }
 
 #define VOLTAGE_V25            0x03
-#define LDOE25_SHIFT   28
 
 /*  */
 /*     The following is for compile ok */
 /*     That should be merged with the original in the future */
 /*  */
 #define EFUSE_ACCESS_ON_8723                   0x69    /*  For RTL8723 only. */
-#define EFUSE_ACCESS_OFF_8723                  0x00    /*  For RTL8723 only. */
 #define REG_EFUSE_ACCESS_8723                  0x00CF  /*  Efuse access protection for RTL8723 */
 
 /*  */
index 6e524034f388e58d1e4670e56dfa1f27e7e6b6e0..ca6b548171b488481b2337d464df5ba39dd99143 100644 (file)
@@ -4,21 +4,11 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTL8723B_PHYCFG_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
 #include <rtl8723b_hal.h>
 
-
-/*---------------------------Define Local Constant---------------------------*/
-/* Channel switch:The size of command tables for switch channel*/
-#define MAX_PRECMD_CNT 16
-#define MAX_RFDEPENDCMD_CNT 16
-#define MAX_POSTCMD_CNT 16
-
-#define MAX_DOZE_WAITING_TIMES_9x 64
-
 /**
  * phy_CalculateBitShift - Get shifted position of the BitMask.
  * @BitMask: Bitmask.
index f2f02a69f0af920a4bf4d6b2c3a6bcb965f8964f..717faebf8aca25ad7ff21178207b977b3ca8d38b 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTL8723B_REDESC_C_
 
 #include <rtl8723b_hal.h>
 
index ad803ffc0696064484a0b2bb787229fad9cb97ca..6dc5cd959b75422543c054cebe82e9f3362232bc 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTL8723BS_RECV_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index a05d43b716ee37ff2cc721df1363ea4ce019fc0a..156d6aba18ca10d91bf763ab25b05970a1eff954 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _RTL8723BS_XMIT_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>
index 12b8e1773a8408ef3133f47669a8280ff55c301f..62eb64e447a4cddb3b1f7137711f6ded5f87f494 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define  _IOCTL_CFG80211_C_
 
 #include <linux/etherdevice.h>
 #include <drv_types.h>
@@ -71,8 +70,6 @@ static struct ieee80211_rate rtw_rates[] = {
        RATETAB_ENT(540, 0x800, 0),
 };
 
-#define rtw_a_rates            (rtw_rates + 4)
-#define RTW_A_RATES_NUM        8
 #define rtw_g_rates            (rtw_rates + 0)
 #define RTW_G_RATES_NUM        12
 
index 19c5c7e8f403eb062d89834ac6e40b98d688617d..e2ab34463182b917de3593d3afa2f180a304cce9 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  ******************************************************************************/
-#define _IOCTL_LINUX_C_
 
 #include <linux/etherdevice.h>
 #include <drv_types.h>
index bed930760656381159979e6c9e4c4d411604a4d0..0a0b04088e668bd2d59929885248b6c42c16b788 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
  *
  *******************************************************************************/
-#define _SDIO_OPS_LINUX_C_
 
 #include <drv_types.h>
 #include <rtw_debug.h>