]> Pileus Git - ~andy/linux/commitdiff
staging: wlags49_h2: debug.h: remove typedef for debug structure
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 17:55:31 +0000 (09:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 17:55:31 +0000 (09:55 -0800)
Also move the variable definition into the .h file, so it doesn't have
to be declared in each .c file individually, which is crazy.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/debug.h
drivers/staging/wlags49_h2/wl_cs.c
drivers/staging/wlags49_h2/wl_enc.c
drivers/staging/wlags49_h2/wl_main.c
drivers/staging/wlags49_h2/wl_netdev.c
drivers/staging/wlags49_h2/wl_pci.c
drivers/staging/wlags49_h2/wl_priv.c
drivers/staging/wlags49_h2/wl_profile.c
drivers/staging/wlags49_h2/wl_util.c
drivers/staging/wlags49_h2/wl_wext.c

index 03d6836eea3ed06cb06fd22412c26c13df12f10a..40f6a3ee7408a01c0a4283a120a091ee8d262713 100644 (file)
                                  #C, __FILE__, __LINE__, __func__);    \
                } } while (0)
 
-typedef struct {
+struct dbg_info {
        char            *dbgName;
        int             dbgLevel;
        unsigned long   DebugFlag;
-} dbg_info_t;
+};
+
+extern struct dbg_info *DbgInfo;
 
 
 /****************************************************************************/
index 418c547d32145ce2b312a902452ed2caa5128f74..3f7cf41a0e34a8b8c535d69e49dd8c4d61e911e0 100644 (file)
 #include <wl_netdev.h>
 #include <wl_cs.h>
 
-
-/*******************************************************************************
- *  global definitions
- ******************************************************************************/
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  /* DBG */
-
-
 /*******************************************************************************
  *     wl_adapter_attach()
  *******************************************************************************
index 51293d9f2be91a7b12fc4e9232e1bfaa56f3f19d..389c23bdc28fe58251de9f2fdf89c81aefd65011 100644 (file)
 
 #include <wl_enc.h>
 
-
-
-
-/*******************************************************************************
- *  global definitions
- ******************************************************************************/
-#if DBG
-
-extern dbg_info_t *DbgInfo;
-
-#endif  /* DBG */
-
-
-
-
 /*******************************************************************************
  *     wl_wep_code()
  *******************************************************************************
index 632cebde985142b6b3ae06d285a321fe9f5c378d..650def88e5c2a6a0c56faacb78a67773b1ec9e80 100644 (file)
@@ -400,8 +400,8 @@ static p_u32    pc_debug = DBG_LVL;
  */ p_u32    DebugFlag = ~0; //recognizable "undefined value" rather then DBG_DEFAULTS;
 //MODULE_PARM(DebugFlag, "l");
 
-dbg_info_t   wl_info = { KBUILD_MODNAME, 0, 0 };
-dbg_info_t  *DbgInfo = &wl_info;
+static struct dbg_info wl_info = { KBUILD_MODNAME, 0, 0 };
+struct dbg_info *DbgInfo = &wl_info;
 
 #endif /* DBG */
 #ifdef USE_RTS
index 83e289ce2bd6c4e44f4574bb2f4948a1a2754c95..965b1c0a475325d2ce79c9a4760328e1c20fd162 100644 (file)
 #endif  /* BUS_PCI */
 
 
-/*******************************************************************************
- * global variables
- ******************************************************************************/
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  /* DBG */
-
-
 #if HCF_ENCAP
 #define MTU_MAX (HCF_MAX_MSG - ETH_HLEN - 8)
 #else
index 9bde47cbe1e6b2f3da6287d5b4e1540e874f5efd..785e781b2b18b61f42f8c3f076c5b5397dd36353 100644 (file)
 #include <wireless/wl_netdev.h>
 #include <wireless/wl_pci.h>
 
-
-/*******************************************************************************
- * global variables
- ******************************************************************************/
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  // DBG
-
 /* define the PCI device Table Cardname and id tables */
 static struct pci_device_id wl_pci_tbl[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_WL_LKM, PCI_DEVICE_ID_WL_LKM_0), },
index 828ef2c48c221a7604c5c053cd95c8872b6b47c3..41f332499d4296ea005cde7682ad43435619b1f9 100644 (file)
@@ -94,16 +94,6 @@ int cfg_driver_info(struct uilreq *urq, struct wl_private *lp);
 int cfg_driver_identity(struct uilreq *urq, struct wl_private *lp);
 
 
-/*******************************************************************************
- * global variables
- ******************************************************************************/
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  /* DBG */
-
-
-
-
 /* If USE_UIL is not defined, then none of the UIL Interface code below will
    be included in the build */
 #ifdef USE_UIL
index adcd8e89e10a5d53d788507b7310748321260a4f..28cc5765e5c13d659120c824ee736ef813573d13 100644 (file)
 #include <wl_profile.h>
 
 
-/*******************************************************************************
- * global variables
- ******************************************************************************/
-
 /* Definition needed to prevent unresolved external in unistd.h */
 static int errno;
 
 #if DBG
 extern p_u32    DebugFlag;
-extern dbg_info_t *DbgInfo;
 #endif
 
 int parse_yes_no(char *value);
index f34f82e08027a62882b1eb1b11488bbdfc8ce464..4ca6e42ecd7e303fa24114649355a0b431ea0bad 100644 (file)
@@ -128,13 +128,6 @@ static const long chan_freq_list[][2] =
     {161,5805}
 };
 
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  /* DBG */
-
-
-
-
 /*******************************************************************************
  *     dbm()
  *******************************************************************************
index 44a95fd9375a64758fcb355f57128c2ef7228e09..4a1ddaf5e00f85bf3bcd6e4e41238449216464e4 100644 (file)
 #include <wl_wext.h>
 #include <wl_priv.h>
 
-/*******************************************************************************
- * global definitions
- ******************************************************************************/
-#if DBG
-extern dbg_info_t *DbgInfo;
-#endif  // DBG
-
-
 /* Set up the LTV to program the appropriate key */
 static int hermes_set_tkip_keys(ltv_t *ltv, u16 key_idx, u8 *addr,
                                int set_tx, u8 *seq, u8 *key, size_t key_len)