Commit fa63c9ce authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman

Staging: rtl8192e: Fix Sparse Warning for Static Declarations in rtl_core.c

This patch fixes the following sparse warning in rtl8192e/rtl_core.c-

drivers/staging/rtl8192e/rtl8192e/rtl_core.c:58:5: warning: symbol 'hwwep' was not declared. Should it be static?
drivers/staging/rtl8192e/rtl8192e/rtl_core.c:588:5: warning: symbol 'WDCAPARA_ADD' was not declared. Should it be static?
drivers/staging/rtl8192e/rtl8192e/rtl_core.c:2695:13: warning: symbol 'rtl8192_interrupt' was not declared. Should it be static?
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 285cce05
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "rtl_dm.h" #include "rtl_dm.h"
#include "rtl_wx.h" #include "rtl_wx.h"
extern int WDCAPARA_ADD[]; static int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO};
void rtl8192e_start_beacon(struct net_device *dev) void rtl8192e_start_beacon(struct net_device *dev)
{ {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "r8190P_rtl8256.h" /* RTL8225 Radio frontend */ #include "r8190P_rtl8256.h" /* RTL8225 Radio frontend */
#include "r8192E_cmdpkt.h" #include "r8192E_cmdpkt.h"
extern int hwwep;
void CamResetAllEntry(struct net_device *dev) void CamResetAllEntry(struct net_device *dev)
{ {
u32 ulcommand = 0; u32 ulcommand = 0;
......
...@@ -585,8 +585,6 @@ static void rtl8192_update_beacon(void *data) ...@@ -585,8 +585,6 @@ static void rtl8192_update_beacon(void *data)
rtl8192_update_cap(dev, net->capability); rtl8192_update_cap(dev, net->capability);
} }
int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO};
static void rtl8192_qos_activate(void *data) static void rtl8192_qos_activate(void *data)
{ {
struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv, struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv,
...@@ -2692,7 +2690,7 @@ static int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -2692,7 +2690,7 @@ static int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
} }
irqreturn_t rtl8192_interrupt(int irq, void *netdev) static irqreturn_t rtl8192_interrupt(int irq, void *netdev)
{ {
struct net_device *dev = (struct net_device *) netdev; struct net_device *dev = (struct net_device *) netdev;
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
......
...@@ -188,6 +188,8 @@ ...@@ -188,6 +188,8 @@
#define MAX_RX_COUNT 64 #define MAX_RX_COUNT 64
#define MAX_TX_QUEUE_COUNT 9 #define MAX_TX_QUEUE_COUNT 9
extern int hwwep;
enum RTL819x_PHY_PARAM { enum RTL819x_PHY_PARAM {
RTL819X_PHY_MACPHY_REG = 0, RTL819X_PHY_MACPHY_REG = 0,
RTL819X_PHY_MACPHY_REG_PG = 1, RTL819X_PHY_MACPHY_REG_PG = 1,
......
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