Author: hselasky
Date: Sat Feb 17 14:44:03 2018
New Revision: 329460
URL: https://svnweb.freebsd.org/changeset/base/329460

Log:
  Remove unused bus_autoconf section from usb.ko.
  
  Sponsored by: Mellanox Technologies

Modified:
  head/sys/dev/usb/usb_lookup.c

Modified: head/sys/dev/usb/usb_lookup.c
==============================================================================
--- head/sys/dev/usb/usb_lookup.c       Sat Feb 17 14:40:28 2018        
(r329459)
+++ head/sys/dev/usb/usb_lookup.c       Sat Feb 17 14:44:03 2018        
(r329460)
@@ -153,70 +153,3 @@ usbd_lookup_id_by_uaa(const struct usb_device_id *id, 
        return (ENXIO);
 }
 
-/*------------------------------------------------------------------------*
- *     Export the USB device ID format we use to userspace tools.
- *------------------------------------------------------------------------*/
-#if BYTE_ORDER == LITTLE_ENDIAN
-#define        U16_XOR "0"
-#else
-#define        U16_XOR "8"
-#endif
-
-#if defined(KLD_MODULE) && (USB_HAVE_ID_SECTION != 0)
-static const char __section("bus_autoconf_format") __used usb_id_format[] = {
-
-       /* Declare that three different sections use the same format */
-
-       "usb_host_id{256,:}"
-       "usb_device_id{256,:}"
-       "usb_dual_id{256,:}"
-
-       /* List size of fields in the usb_device_id structure */
-
-       "mf_vendor{" U16_XOR ",1}"
-       "mf_product{" U16_XOR ",1}"
-       "mf_dev_lo{" U16_XOR ",1}"
-       "mf_dev_hi{" U16_XOR ",1}"
-
-       "mf_dev_class{" U16_XOR ",1}"
-       "mf_dev_subclass{" U16_XOR ",1}"
-       "mf_dev_protocol{" U16_XOR ",1}"
-       "mf_int_class{" U16_XOR ",1}"
-
-       "mf_int_subclass{" U16_XOR ",1}"
-       "mf_int_protocol{" U16_XOR ",1}"
-       "unused{" U16_XOR ",6}"
-
-       "idVendor[0]{" U16_XOR ",8}"
-       "idVendor[1]{" U16_XOR ",8}"
-       "idProduct[0]{" U16_XOR ",8}"
-       "idProduct[1]{" U16_XOR ",8}"
-       "bcdDevice_lo[0]{" U16_XOR ",8}"
-       "bcdDevice_lo[1]{" U16_XOR ",8}"
-       "bcdDevice_hi[0]{" U16_XOR ",8}"
-       "bcdDevice_hi[1]{" U16_XOR ",8}"
-
-       "bDeviceClass{0,8}"
-       "bDeviceSubClass{0,8}"
-       "bDeviceProtocol{0,8}"
-       "bInterfaceClass{0,8}"
-       "bInterfaceSubClass{0,8}"
-       "bInterfaceProtocol{0,8}"
-
-#if USB_HAVE_COMPAT_LINUX
-       "mfl_vendor{" U16_XOR ",1}"
-       "mfl_product{" U16_XOR ",1}"
-       "mfl_dev_lo{" U16_XOR ",1}"
-       "mfl_dev_hi{" U16_XOR ",1}"
-
-       "mfl_dev_class{" U16_XOR ",1}"
-       "mfl_dev_subclass{" U16_XOR ",1}"
-       "mfl_dev_protocol{" U16_XOR ",1}"
-       "mfl_int_class{" U16_XOR ",1}"
-
-       "mfl_int_subclass{" U16_XOR ",1}"
-       "mfl_int_protocol{" U16_XOR ",1}"
-       "unused{" U16_XOR ",6}"
-#endif
-};
-#endif
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to