staging: rtl8192u: make in ieee80211/rtl819x_TSProc.c some local functions static

Make some local functions static and fix coding style in this function
declarations when It is necessary.

These are the local functions that were made static:
TsSetupTimeOut, TsInactTimeout RxPktPendingTimeout, TsAddBaProcess,
ResetTsCommonInfo, ResetTxTsEntry, ResetRxTsEntry, AdmitTS,
SearchAdmitTRStream, MakeTSEntry, RemoveTsEntry.

Fix the following sparse warnings in ieee80211/rtl819x_TSProc.c

drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:6:6: warning: symbol 'TsSetupTimeOut' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:12:6: warning: symbol 'TsInactTimeout' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:25:6: warning: symbol 'RxPktPendingTimeout' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:102:6: warning: symbol 'TsAddBaProcess' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:113:6: warning: symbol 'ResetTsCommonInfo' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:122:6: warning: symbol 'ResetTxTsEntry' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:133:6: warning: symbol 'ResetRxTsEntry' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:227:6: warning: symbol 'AdmitTS' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:237:17: warning: symbol 'SearchAdmitTRStream' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:312:6: warning: symbol 'MakeTSEntry' was not declared. Should it be static?
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:475:6: warning: symbol 'RemoveTsEntry' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
This commit is contained in:
Ana Rey 2014-03-13 17:54:59 +01:00 committed by Peter P Waskiewicz Jr
parent a72eea3b7e
commit 1d6fa8954b

View File

@ -3,13 +3,13 @@
#include <linux/slab.h> #include <linux/slab.h>
#include "rtl819x_TS.h" #include "rtl819x_TS.h"
void TsSetupTimeOut(unsigned long data) static void TsSetupTimeOut(unsigned long data)
{ {
// Not implement yet // Not implement yet
// This is used for WMMSA and ACM , that would send ADDTSReq frame. // This is used for WMMSA and ACM , that would send ADDTSReq frame.
} }
void TsInactTimeout(unsigned long data) static void TsInactTimeout(unsigned long data)
{ {
// Not implement yet // Not implement yet
// This is used for WMMSA and ACM. // This is used for WMMSA and ACM.
@ -22,7 +22,7 @@ void TsInactTimeout(unsigned long data)
* return: NULL * return: NULL
* notice: * notice:
********************************************************************************************************************/ ********************************************************************************************************************/
void RxPktPendingTimeout(unsigned long data) static void RxPktPendingTimeout(unsigned long data)
{ {
PRX_TS_RECORD pRxTs = (PRX_TS_RECORD)data; PRX_TS_RECORD pRxTs = (PRX_TS_RECORD)data;
struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num]); struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num]);
@ -99,7 +99,7 @@ void RxPktPendingTimeout(unsigned long data)
* return: NULL * return: NULL
* notice: * notice:
********************************************************************************************************************/ ********************************************************************************************************************/
void TsAddBaProcess(unsigned long data) static void TsAddBaProcess(unsigned long data)
{ {
PTX_TS_RECORD pTxTs = (PTX_TS_RECORD)data; PTX_TS_RECORD pTxTs = (PTX_TS_RECORD)data;
u8 num = pTxTs->num; u8 num = pTxTs->num;
@ -110,7 +110,7 @@ void TsAddBaProcess(unsigned long data)
} }
void ResetTsCommonInfo(PTS_COMMON_INFO pTsCommonInfo) static void ResetTsCommonInfo(PTS_COMMON_INFO pTsCommonInfo)
{ {
memset(pTsCommonInfo->Addr, 0, 6); memset(pTsCommonInfo->Addr, 0, 6);
memset(&pTsCommonInfo->TSpec, 0, sizeof(TSPEC_BODY)); memset(&pTsCommonInfo->TSpec, 0, sizeof(TSPEC_BODY));
@ -119,7 +119,7 @@ void ResetTsCommonInfo(PTS_COMMON_INFO pTsCommonInfo)
pTsCommonInfo->TClasNum = 0; pTsCommonInfo->TClasNum = 0;
} }
void ResetTxTsEntry(PTX_TS_RECORD pTS) static void ResetTxTsEntry(PTX_TS_RECORD pTS)
{ {
ResetTsCommonInfo(&pTS->TsCommonInfo); ResetTsCommonInfo(&pTS->TsCommonInfo);
pTS->TxCurSeq = 0; pTS->TxCurSeq = 0;
@ -130,7 +130,7 @@ void ResetTxTsEntry(PTX_TS_RECORD pTS)
ResetBaEntry(&pTS->TxPendingBARecord); ResetBaEntry(&pTS->TxPendingBARecord);
} }
void ResetRxTsEntry(PRX_TS_RECORD pTS) static void ResetRxTsEntry(PRX_TS_RECORD pTS)
{ {
ResetTsCommonInfo(&pTS->TsCommonInfo); ResetTsCommonInfo(&pTS->TsCommonInfo);
pTS->RxIndicateSeq = 0xffff; // This indicate the RxIndicateSeq is not used now!! pTS->RxIndicateSeq = 0xffff; // This indicate the RxIndicateSeq is not used now!!
@ -224,7 +224,8 @@ void TSInitialize(struct ieee80211_device *ieee)
} }
void AdmitTS(struct ieee80211_device *ieee, PTS_COMMON_INFO pTsCommonInfo, u32 InactTime) static void AdmitTS(struct ieee80211_device *ieee,
PTS_COMMON_INFO pTsCommonInfo, u32 InactTime)
{ {
del_timer_sync(&pTsCommonInfo->SetupTimer); del_timer_sync(&pTsCommonInfo->SetupTimer);
del_timer_sync(&pTsCommonInfo->InactTimer); del_timer_sync(&pTsCommonInfo->InactTimer);
@ -234,7 +235,9 @@ void AdmitTS(struct ieee80211_device *ieee, PTS_COMMON_INFO pTsCommonInfo, u32 I
} }
PTS_COMMON_INFO SearchAdmitTRStream(struct ieee80211_device *ieee, u8 *Addr, u8 TID, TR_SELECT TxRxSelect) static PTS_COMMON_INFO SearchAdmitTRStream(struct ieee80211_device *ieee,
u8 *Addr, u8 TID,
TR_SELECT TxRxSelect)
{ {
//DIRECTION_VALUE dir; //DIRECTION_VALUE dir;
u8 dir; u8 dir;
@ -309,14 +312,9 @@ PTS_COMMON_INFO SearchAdmitTRStream(struct ieee80211_device *ieee, u8 *Addr, u8
return NULL; return NULL;
} }
void MakeTSEntry( static void MakeTSEntry(PTS_COMMON_INFO pTsCommonInfo, u8 *Addr,
PTS_COMMON_INFO pTsCommonInfo, PTSPEC_BODY pTSPEC, PQOS_TCLAS pTCLAS, u8 TCLAS_Num,
u8 *Addr, u8 TCLAS_Proc)
PTSPEC_BODY pTSPEC,
PQOS_TCLAS pTCLAS,
u8 TCLAS_Num,
u8 TCLAS_Proc
)
{ {
u8 count; u8 count;
@ -472,11 +470,8 @@ bool GetTs(
} }
} }
void RemoveTsEntry( static void RemoveTsEntry(struct ieee80211_device *ieee, PTS_COMMON_INFO pTs,
struct ieee80211_device *ieee, TR_SELECT TxRxSelect)
PTS_COMMON_INFO pTs,
TR_SELECT TxRxSelect
)
{ {
//u32 flags = 0; //u32 flags = 0;
unsigned long flags = 0; unsigned long flags = 0;