Commit 17ab33ee authored by Teodora Baluta's avatar Teodora Baluta Committed by Greg Kroah-Hartman

staging: rtl8187se: fix static sparse warnings

This patch fixes sparse warnings regarding functions that should be
static in driver rtl8187se.
Signed-off-by: default avatarTeodora Baluta <teobaluta@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e87b1b3
...@@ -858,7 +858,7 @@ static inline void ieee80211_extract_country_ie( ...@@ -858,7 +858,7 @@ static inline void ieee80211_extract_country_ie(
} }
int static int
ieee80211_TranslateToDbm( ieee80211_TranslateToDbm(
unsigned char SignalStrengthIndex // 0-100 index. unsigned char SignalStrengthIndex // 0-100 index.
) )
......
...@@ -887,7 +887,8 @@ static struct sk_buff* ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d ...@@ -887,7 +887,8 @@ static struct sk_buff* ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
return skb; return skb;
} }
struct sk_buff* ieee80211_assoc_resp(struct ieee80211_device *ieee, u8 *dest) static struct sk_buff* ieee80211_assoc_resp(struct ieee80211_device *ieee,
u8 *dest)
{ {
struct sk_buff *skb; struct sk_buff *skb;
u8* tag; u8* tag;
...@@ -940,7 +941,8 @@ struct sk_buff* ieee80211_assoc_resp(struct ieee80211_device *ieee, u8 *dest) ...@@ -940,7 +941,8 @@ struct sk_buff* ieee80211_assoc_resp(struct ieee80211_device *ieee, u8 *dest)
return skb; return skb;
} }
struct sk_buff* ieee80211_auth_resp(struct ieee80211_device *ieee,int status, u8 *dest) static struct sk_buff* ieee80211_auth_resp(struct ieee80211_device *ieee,
int status, u8 *dest)
{ {
struct sk_buff *skb; struct sk_buff *skb;
struct ieee80211_authentication *auth; struct ieee80211_authentication *auth;
......
...@@ -239,8 +239,8 @@ void ieee80211_txb_free(struct ieee80211_txb *txb) { ...@@ -239,8 +239,8 @@ void ieee80211_txb_free(struct ieee80211_txb *txb) {
kfree(txb); kfree(txb);
} }
struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
gfp_t gfp_mask) gfp_t gfp_mask)
{ {
struct ieee80211_txb *txb; struct ieee80211_txb *txb;
int i; int i;
......
This diff is collapsed.
...@@ -30,7 +30,7 @@ bool CheckHighPower(struct net_device *dev) ...@@ -30,7 +30,7 @@ bool CheckHighPower(struct net_device *dev)
* and they are related to OFDM and MAC registers. * and they are related to OFDM and MAC registers.
* So, we don't want to update it so frequently in per-Rx packet base. * So, we don't want to update it so frequently in per-Rx packet base.
*/ */
void DoTxHighPower(struct net_device *dev) static void DoTxHighPower(struct net_device *dev)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
u16 HiPwrUpperTh = 0; u16 HiPwrUpperTh = 0;
...@@ -125,7 +125,7 @@ bool CheckDig(struct net_device *dev) ...@@ -125,7 +125,7 @@ bool CheckDig(struct net_device *dev)
/* /*
* Implementation of DIG for Zebra and Zebra2. * Implementation of DIG for Zebra and Zebra2.
*/ */
void DIG_Zebra(struct net_device *dev) static void DIG_Zebra(struct net_device *dev)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
u16 CCKFalseAlarm, OFDMFalseAlarm; u16 CCKFalseAlarm, OFDMFalseAlarm;
...@@ -202,7 +202,7 @@ void DIG_Zebra(struct net_device *dev) ...@@ -202,7 +202,7 @@ void DIG_Zebra(struct net_device *dev)
/* /*
* Dispatch DIG implementation according to RF. * Dispatch DIG implementation according to RF.
*/ */
void DynamicInitGain(struct net_device *dev) static void DynamicInitGain(struct net_device *dev)
{ {
DIG_Zebra(dev); DIG_Zebra(dev);
} }
...@@ -223,7 +223,7 @@ void rtl8180_hw_dig_wq(struct work_struct *work) ...@@ -223,7 +223,7 @@ void rtl8180_hw_dig_wq(struct work_struct *work)
} }
int IncludedInSupportedRates(struct r8180_priv *priv, u8 TxRate) static int IncludedInSupportedRates(struct r8180_priv *priv, u8 TxRate)
{ {
u8 rate_len; u8 rate_len;
u8 rate_ex_len; u8 rate_ex_len;
...@@ -255,7 +255,7 @@ int IncludedInSupportedRates(struct r8180_priv *priv, u8 TxRate) ...@@ -255,7 +255,7 @@ int IncludedInSupportedRates(struct r8180_priv *priv, u8 TxRate)
* Get the Tx rate one degree up form the input rate in the supported rates. * Get the Tx rate one degree up form the input rate in the supported rates.
* Return the upgrade rate if it is successed, otherwise return the input rate. * Return the upgrade rate if it is successed, otherwise return the input rate.
*/ */
u8 GetUpgradeTxRate(struct net_device *dev, u8 rate) static u8 GetUpgradeTxRate(struct net_device *dev, u8 rate)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
u8 UpRate; u8 UpRate;
...@@ -315,7 +315,7 @@ u8 GetUpgradeTxRate(struct net_device *dev, u8 rate) ...@@ -315,7 +315,7 @@ u8 GetUpgradeTxRate(struct net_device *dev, u8 rate)
* Return the degrade rate if it is successed, otherwise return the input rate. * Return the degrade rate if it is successed, otherwise return the input rate.
*/ */
u8 GetDegradeTxRate(struct net_device *dev, u8 rate) static u8 GetDegradeTxRate(struct net_device *dev, u8 rate)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
u8 DownRate; u8 DownRate;
...@@ -375,7 +375,7 @@ u8 GetDegradeTxRate(struct net_device *dev, u8 rate) ...@@ -375,7 +375,7 @@ u8 GetDegradeTxRate(struct net_device *dev, u8 rate)
* CCK rate. * CCK rate.
*/ */
bool MgntIsCckRate(u16 rate) static bool MgntIsCckRate(u16 rate)
{ {
bool bReturn = false; bool bReturn = false;
...@@ -435,7 +435,7 @@ void TxPwrTracking87SE(struct net_device *dev) ...@@ -435,7 +435,7 @@ void TxPwrTracking87SE(struct net_device *dev)
} }
priv->ThermalMeter = CurrentThermal; priv->ThermalMeter = CurrentThermal;
} }
void StaRateAdaptive87SE(struct net_device *dev) static void StaRateAdaptive87SE(struct net_device *dev)
{ {
struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev); struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
unsigned long CurrTxokCnt; unsigned long CurrTxokCnt;
......
...@@ -136,7 +136,7 @@ static const u16 rtl8225z2_rxgain[] = { ...@@ -136,7 +136,7 @@ static const u16 rtl8225z2_rxgain[] = {
}; };
void rtl8225z2_set_gain(struct net_device *dev, short gain) static void rtl8225z2_set_gain(struct net_device *dev, short gain)
{ {
const u8 *rtl8225_gain; const u8 *rtl8225_gain;
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
...@@ -279,8 +279,8 @@ void rtl8225z2_rf_close(struct net_device *dev) ...@@ -279,8 +279,8 @@ void rtl8225z2_rf_close(struct net_device *dev)
* Map dBm into Tx power index according to current HW model, for example, * Map dBm into Tx power index according to current HW model, for example,
* RF and PA, and current wireless mode. * RF and PA, and current wireless mode.
*/ */
s8 DbmToTxPwrIdx(struct r8180_priv *priv, WIRELESS_MODE WirelessMode, static s8 DbmToTxPwrIdx(struct r8180_priv *priv, WIRELESS_MODE WirelessMode,
s32 PowerInDbm) s32 PowerInDbm)
{ {
bool bUseDefault = true; bool bUseDefault = true;
s8 TxPwrIdx = 0; s8 TxPwrIdx = 0;
......
...@@ -50,8 +50,9 @@ static int r8180_wx_get_freq(struct net_device *dev, ...@@ -50,8 +50,9 @@ static int r8180_wx_get_freq(struct net_device *dev,
} }
int r8180_wx_set_key(struct net_device *dev, struct iw_request_info *info, static int r8180_wx_set_key(struct net_device *dev,
union iwreq_data *wrqu, char *key) struct iw_request_info *info,
union iwreq_data *wrqu, char *key)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
struct iw_point *erq = &(wrqu->encoding); struct iw_point *erq = &(wrqu->encoding);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment