staging: r8712u: Fix sparse message
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 14 Jan 2011 20:54:13 +0000 (14:54 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 20:22:19 +0000 (12:22 -0800)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_mp_ioctl.c
drivers/staging/rtl8712/rtl871x_mp_ioctl.h

index 685a7b112d4bf48e61bbdd49cbda26b1abee29f3..0d288c159c1d7dd9151879d777b25bd582f974dc 100644 (file)
@@ -27,6 +27,7 @@
  ******************************************************************************/
 
 #define _RTL871X_IOCTL_LINUX_C_
+#define _RTL871X_MP_IOCTL_C_
 
 #include "osdep_service.h"
 #include "drv_types.h"
index d60aaa9c4872436546d315dc3a2ee7cf12a0bc47..5eb461b4a491387446b518982454fd024a36cf68 100644 (file)
@@ -26,8 +26,6 @@
  *
  ******************************************************************************/
 
-#define _RTL871X_MP_IOCTL_C_
-
 #include "osdep_service.h"
 #include "drv_types.h"
 #include "mlme_osdep.h"
index 2225bd15466b14332e5274f31c2142ebcc700df2..fdd2278936d8c66f040c50ab4bf005241c123f6d 100644 (file)
@@ -373,7 +373,7 @@ unsigned int mp_ioctl_xmit_packet_hdl(struct oid_par_priv *poid_par_priv);
 #ifdef _RTL871X_MP_IOCTL_C_ /* CAUTION!!! */
 /* This ifdef _MUST_ be left in!! */
 
-struct mp_ioctl_handler mp_ioctl_hdl[] = {
+static struct mp_ioctl_handler mp_ioctl_hdl[] = {
        {sizeof(u32), oid_rt_pro_start_test_hdl,
                             OID_RT_PRO_START_TEST},/*0*/
        {sizeof(u32), oid_rt_pro_stop_test_hdl,