net: asix: Move declaration of ax88172a_info to shared header
authorMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 17:31:22 +0000 (18:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Aug 2013 21:13:52 +0000 (14:13 -0700)
Ensure that the definition of ax88172a_info matches the declaration seen
by users and silence sparse warnings about symbols without declarations
in the global namespace by moving the declaration into the shared header
asix.h.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.h
drivers/net/usb/asix_devices.c

index 346c032..bdaa12d 100644 (file)
@@ -178,6 +178,8 @@ struct asix_common_private {
        struct asix_rx_fixup_info rx_fixup_info;
 };
 
+extern const struct driver_info ax88172a_info;
+
 /* ASIX specific flags */
 #define FLAG_EEPROM_MAC                (1UL << 0)  /* init device MAC from eeprom */
 
index b96ad4f..386a3df 100644 (file)
@@ -946,8 +946,6 @@ static const struct driver_info hg20f9_info = {
        .data = FLAG_EEPROM_MAC,
 };
 
-extern const struct driver_info ax88172a_info;
-
 static const struct usb_device_id      products [] = {
 {
        // Linksys USB200M