From: Mark Brown Date: Fri, 9 Aug 2013 17:31:22 +0000 (+0100) Subject: net: asix: Move declaration of ax88172a_info to shared header X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55d10a11aeeca48149d14fcc0b955017f3618882;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: asix: Move declaration of ax88172a_info to shared header 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/asix.h b/drivers/net/usb/asix.h index 346c032aa795..bdaa12d07a12 100644 --- a/drivers/net/usb/asix.h +++ b/drivers/net/usb/asix.h @@ -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 */ diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c index b96ad4f15b8a..386a3df53678 100644 --- a/drivers/net/usb/asix_devices.c +++ b/drivers/net/usb/asix_devices.c @@ -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