diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 21:25:52 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 21:25:52 -0700 |
| commit | 449b8859deef88432ee8940093a61e90721199fd (patch) | |
| tree | 19b3283326b70ce77ddf2b882f7f028422534b2c /f2.patch | |
| parent | f71299d9cd21ffd04dbaea7cf95a6a565363f5fa (diff) | |
| download | patches-449b8859deef88432ee8940093a61e90721199fd.tar.gz | |
dynamic debug work
Diffstat (limited to 'f2.patch')
| -rw-r--r-- | f2.patch | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/f2.patch b/f2.patch new file mode 100644 index 00000000000000..6aa21a6ddab2fb --- /dev/null +++ b/f2.patch @@ -0,0 +1,188 @@ +From foo@baz Tue Apr 9 12:12:43 2002 +Date: Wed, 13 Aug 2008 20:08:35 -0700 +To: Greg KH <greg@kroah.com> +From: Greg Kroah-Hartman <gregkh@suse.de> +Subject: USB gadget: make g_util.ko + +This moves the "C_UTILS" files in the USB gadget subsystem into a common +kernel module. This solves a number of kernel build issues (same .o +file being included into multiple .ko, etc.) + +Cc: David Brownell <david-b@pacbell.net> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/usb/gadget/Makefile | 34 +++++++++++++++++----------------- + drivers/usb/gadget/composite.c | 20 ++++++++++++++++++++ + drivers/usb/gadget/config.c | 5 ++++- + drivers/usb/gadget/epautoconf.c | 2 ++ + drivers/usb/gadget/usbstring.c | 2 +- + 5 files changed, 44 insertions(+), 19 deletions(-) + +--- a/drivers/usb/gadget/composite.c ++++ b/drivers/usb/gadget/composite.c +@@ -126,6 +126,7 @@ done: + function->name, function, value); + return value; + } ++EXPORT_SYMBOL_GPL(usb_add_function); + + /** + * usb_interface_id() - allocate an unused interface ID +@@ -162,6 +163,7 @@ int __init usb_interface_id(struct usb_c + } + return -ENODEV; + } ++EXPORT_SYMBOL_GPL(usb_interface_id); + + static int config_buf(struct usb_configuration *config, + enum usb_device_speed speed, void *buf, u8 type) +@@ -452,6 +454,7 @@ done: + config->bConfigurationValue, status); + return status; + } ++EXPORT_SYMBOL_GPL(usb_add_config); + + /*-------------------------------------------------------------------------*/ + +@@ -594,6 +597,7 @@ int __init usb_string_id(struct usb_comp + } + return -ENODEV; + } ++EXPORT_SYMBOL_GPL(usb_string_id); + + /*-------------------------------------------------------------------------*/ + +@@ -1025,6 +1029,7 @@ int __init usb_composite_register(struct + + return usb_gadget_register_driver(&composite_driver); + } ++EXPORT_SYMBOL_GPL(usb_composite_register); + + /** + * usb_composite_unregister() - unregister a composite driver +@@ -1039,3 +1044,18 @@ void __exit usb_composite_unregister(str + return; + usb_gadget_unregister_driver(&composite_driver); + } ++EXPORT_SYMBOL_GPL(usb_composite_unregister); ++ ++static int __init composite_init(void) ++{ ++ return 0; ++} ++ ++static void __exit composite_exit(void) ++{ ++} ++ ++module_init(composite_init); ++module_exit(composite_exit); ++ ++MODULE_LICENSE("GPL"); +--- a/drivers/usb/gadget/config.c ++++ b/drivers/usb/gadget/config.c +@@ -61,7 +61,7 @@ usb_descriptor_fillbuf(void *buf, unsign + } + return dest - (u8 *)buf; + } +- ++EXPORT_SYMBOL_GPL(usb_descriptor_fillbuf); + + /** + * usb_gadget_config_buf - builts a complete configuration descriptor +@@ -114,6 +114,7 @@ int usb_gadget_config_buf( + cp->bmAttributes |= USB_CONFIG_ATT_ONE; + return len; + } ++EXPORT_SYMBOL_GPL(usb_gadget_config_buf); + + /** + * usb_copy_descriptors - copy a vector of USB descriptors +@@ -163,6 +164,7 @@ usb_copy_descriptors(struct usb_descript + + return ret; + } ++EXPORT_SYMBOL_GPL(usb_copy_descriptors); + + /** + * usb_find_endpoint - find a copy of an endpoint descriptor +@@ -189,3 +191,4 @@ usb_find_endpoint( + } + return NULL; + } ++EXPORT_SYMBOL_GPL(usb_find_endpoint); +--- a/drivers/usb/gadget/epautoconf.c ++++ b/drivers/usb/gadget/epautoconf.c +@@ -286,6 +286,7 @@ struct usb_ep * __init usb_ep_autoconfig + /* Fail */ + return NULL; + } ++EXPORT_SYMBOL_GPL(usb_ep_autoconfig); + + /** + * usb_ep_autoconfig_reset - reset endpoint autoconfig state +@@ -308,4 +309,5 @@ void __init usb_ep_autoconfig_reset (str + #endif + epnum = 0; + } ++EXPORT_SYMBOL_GPL(usb_ep_autoconfig_reset); + +--- a/drivers/usb/gadget/Makefile ++++ b/drivers/usb/gadget/Makefile +@@ -22,30 +22,30 @@ obj-$(CONFIG_USB_M66592) += m66592-udc.o + # + # USB gadget drivers + # +-C_UTILS = composite.o usbstring.o config.o epautoconf.o + +-g_zero-objs := zero.o f_sourcesink.o f_loopback.o $(C_UTILS) +-g_ether-objs := ether.o u_ether.o f_subset.o f_ecm.o $(C_UTILS) +-g_serial-objs := serial.o u_serial.o f_acm.o f_serial.o $(C_UTILS) +-g_midi-objs := gmidi.o usbstring.o config.o epautoconf.o +-gadgetfs-objs := inode.o +-g_file_storage-objs := file_storage.o usbstring.o config.o \ +- epautoconf.o +-g_printer-objs := printer.o usbstring.o config.o \ ++g_utils-objs := composite.o usbstring.o config.o \ + epautoconf.o ++ ++g_zero-objs := zero.o f_sourcesink.o f_loopback.o ++g_ether-objs := ether.o u_ether.o f_subset.o f_ecm.o ++g_serial-objs := serial.o u_serial.o f_acm.o f_serial.o ++g_midi-objs := gmidi.o ++gadgetfs-objs := inode.o ++g_file_storage-objs := file_storage.o ++g_printer-objs := printer.o + g_cdc-objs := cdc2.o u_ether.o f_ecm.o \ +- u_serial.o f_acm.o $(C_UTILS) ++ u_serial.o f_acm.o + + ifeq ($(CONFIG_USB_ETH_RNDIS),y) + g_ether-objs += f_rndis.o rndis.o + endif + +-obj-$(CONFIG_USB_ZERO) += g_zero.o +-obj-$(CONFIG_USB_ETH) += g_ether.o ++obj-$(CONFIG_USB_ZERO) += g_zero.o g_utils.o ++obj-$(CONFIG_USB_ETH) += g_ether.o g_utils.o + obj-$(CONFIG_USB_GADGETFS) += gadgetfs.o +-obj-$(CONFIG_USB_FILE_STORAGE) += g_file_storage.o +-obj-$(CONFIG_USB_G_SERIAL) += g_serial.o +-obj-$(CONFIG_USB_G_PRINTER) += g_printer.o +-obj-$(CONFIG_USB_MIDI_GADGET) += g_midi.o +-obj-$(CONFIG_USB_CDC_COMPOSITE) += g_cdc.o ++obj-$(CONFIG_USB_FILE_STORAGE) += g_file_storage.o g_utils.o ++obj-$(CONFIG_USB_G_SERIAL) += g_serial.o g_utils.o ++obj-$(CONFIG_USB_G_PRINTER) += g_printer.o g_utils.o ++obj-$(CONFIG_USB_MIDI_GADGET) += g_midi.o g_utils.o ++obj-$(CONFIG_USB_CDC_COMPOSITE) += g_cdc.o g_utils.o + +--- a/drivers/usb/gadget/usbstring.c ++++ b/drivers/usb/gadget/usbstring.c +@@ -133,4 +133,4 @@ usb_gadget_get_string (struct usb_gadget + buf [1] = USB_DT_STRING; + return buf [0]; + } +- ++EXPORT_SYMBOL_GPL(usb_gadget_get_string); |
