Re: linux-next: Tree for Apr 20 (usb & target)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,

On Sat, Apr 21, 2012 at 02:07:43AM -0700, Nicholas A. Bellinger wrote:
> On Fri, 2012-04-20 at 14:49 -0700, Randy Dunlap wrote:
> > On 04/19/2012 10:51 PM, Stephen Rothwell wrote:
> > 
> > > Hi all,
> > > 
> > > Changes since 20120419:
> > 
> > 
> 
> Hi Randy,
> 
> > CONFIG_MODULES is not enabled.
> > CONFIG_TCM_USB_GADGET=y
> > CONFIG_USB_GADGET=y
> >
> > drivers/usb/built-in.o: In function `usb_descriptor_fillbuf':
> > (.text+0x53bb): multiple definition of `usb_descriptor_fillbuf'
> > drivers/target/built-in.o:(.text+0x1e605): first defined here
> > drivers/usb/built-in.o: In function `usb_string_ids_n':
> > (.text+0x4f1a): multiple definition of `usb_string_ids_n'
> > drivers/target/built-in.o:(.text+0x1f1ed): first defined here
> > drivers/usb/built-in.o: In function `usb_interface_id':
> > (.text+0x4ea8): multiple definition of `usb_interface_id'
> > drivers/target/built-in.o:(.text+0x1f0bc): first defined here
> > drivers/usb/built-in.o: In function `usb_string_id':
> > (.text+0x4ecc): multiple definition of `usb_string_id'
> > drivers/target/built-in.o:(.text+0x1f19f): first defined here
> > drivers/usb/built-in.o: In function `usb_string_ids_tab':
> > (.text+0x4ee8): multiple definition of `usb_string_ids_tab'
> > drivers/target/built-in.o:(.text+0x1f1bb): first defined here
> > drivers/usb/built-in.o: In function `usb_copy_descriptors':
> > (.text+0x5a01): multiple definition of `usb_copy_descriptors'
> > drivers/target/built-in.o:(.text+0x1ec48): first defined here
> > drivers/usb/built-in.o: In function `usb_composite_unregister':
> > (.text+0x4fe2): multiple definition of `usb_composite_unregister'
> > drivers/target/built-in.o:(.text+0x1f2b5): first defined here
> > drivers/usb/built-in.o: In function `config_ep_by_speed':
> > (.text+0x4bd7): multiple definition of `config_ep_by_speed'
> > drivers/target/built-in.o:(.text+0x1ecca): first defined here
> > drivers/usb/built-in.o: In function `usb_gadget_get_string':
> > (.text+0x5094): multiple definition of `usb_gadget_get_string'
> > drivers/target/built-in.o:(.text+0x1dd85): first defined here
> > drivers/usb/built-in.o: In function `usb_add_function':
> > (.text+0x4cfc): multiple definition of `usb_add_function'
> > drivers/target/built-in.o:(.text+0x1ee6c): first defined here
> > drivers/usb/built-in.o: In function `usb_composite_probe':
> > (.text+0x4f4a): multiple definition of `usb_composite_probe'
> > drivers/target/built-in.o:(.text+0x1f21d): first defined here
> > drivers/usb/built-in.o: In function `usb_composite_setup_continue':
> > (.text+0x4ffd): multiple definition of `usb_composite_setup_continue'
> > drivers/target/built-in.o:(.text+0x1f369): first defined here
> > drivers/usb/built-in.o: In function `usb_gadget_config_buf':
> > (.text+0x59ad): multiple definition of `usb_gadget_config_buf'
> > drivers/target/built-in.o:(.text+0x1ebf4): first defined here
> > drivers/usb/built-in.o: In function `usb_ep_autoconfig':
> > (.text+0x5bba): multiple definition of `usb_ep_autoconfig'
> > drivers/target/built-in.o:(.text+0x1e358): first defined here
> > drivers/usb/built-in.o: In function `usb_function_activate':
> > (.text+0x4e29): multiple definition of `usb_function_activate'
> > drivers/target/built-in.o:(.text+0x1f03b): first defined here
> > drivers/usb/built-in.o: In function `usb_ep_autoconfig_reset':
> > (.text+0x5bc7): multiple definition of `usb_ep_autoconfig_reset'
> > drivers/target/built-in.o:(.text+0x1e365): first defined here
> > drivers/usb/built-in.o: In function `usb_add_config':
> > (.text+0x5e6a): multiple definition of `usb_add_config'
> > drivers/target/built-in.o:(.text+0x1f0e0): first defined here
> > drivers/usb/built-in.o: In function `usb_ep_autoconfig_ss':
> > (.text+0x5a83): multiple definition of `usb_ep_autoconfig_ss'
> > drivers/target/built-in.o:(.text+0x1e0ab): first defined here
> > drivers/usb/built-in.o: In function `usb_function_deactivate':
> > (.text+0x4dc2): multiple definition of `usb_function_deactivate'
> > drivers/target/built-in.o:(.text+0x1efd4): first defined here
> > 
> > 
> 
> Mmmm, It looks like the source file include usage in target/usb-gadget.c
> might be causing some problems here:
> 
> #include "usbstring.c"
> #include "epautoconf.c"
> #include "config.c"
> #include "composite.c"

BTW, this construction was done by David Brownell when Greg asked about
the size of the gadget drivers:

$ git log --oneline --author="Brownell" --grep="link fixes" drivers/usb/gadget/
33376c1 usb gadget: link fixes for network gadget
8a1ce2c usb gadget: link fixes for cdc composite gadget
352e2b9 usb gadget: link fixes for storage gadget
0a56b03 usb gadget: link fixes for printer gadget
77f754c usb gadget: link fixes for MIDI gadget
7e75bc0 usb gadget: link fixes for gadget zero
4e9ba51 usb gadget: link fixes for serial gadget

And here are the mailing list archives:

. http://marc.info/?t=121867757300003&r=1&w=2
. http://marc.info/?t=121910658600003&r=1&w=2

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Other Archives]     [Linux Kernel Newbies]     [Linux Driver Development]     [Fedora Kernel]     [Linux Kernel Testers]     [Linux SH]     [Linux Omap]     [Linux Kbuild]     [Linux Tape]     [Linux Input]     [Linux Kernel Janitors]     [Linux Kernel Packagers]     [Linux Doc]     [Linux Man Pages]     [Linux API]     [Linux Memory Management]     [Linux Modules]     [Linux Standards]     [Kernel Announce]     [Netdev]     [Git]     [Linux PCI]     Linux CAN Development     [Linux I2C]     [Linux RDMA]     [Linux NUMA]     [Netfilter]     [Netfilter Devel]     [SELinux]     [Bugtraq]     [FIO]     [Linux Perf Users]     [Linux Serial]     [Linux PPP]     [Linux ISDN]     [Linux Next]     [Kernel Stable Commits]     [Linux Tip Commits]     [Kernel MM Commits]     [Linux Security Module]     [AutoFS]     [Filesystem Development]     [Ext3 Filesystem]     [Linux bcache]     [Ext4 Filesystem]     [Linux BTRFS]     [Linux CEPH Filesystem]     [Linux XFS]     [XFS]     [Linux NFS]     [Linux CIFS]     [Ecryptfs]     [Linux NILFS]     [Linux Cachefs]     [Reiser FS]     [Initramfs]     [Linux FB Devel]     [Linux OpenGL]     [DRI Devel]     [Fastboot]     [Linux RT Users]     [Linux RT Stable]     [eCos]     [Corosync]     [Linux Clusters]     [LVS Devel]     [Hot Plug]     [Linux Virtualization]     [KVM]     [KVM PPC]     [KVM ia64]     [Linux Containers]     [Linux Hexagon]     [Linux Cgroups]     [Util Linux]     [Wireless]     [Linux Bluetooth]     [Bluez Devel]     [Ethernet Bridging]     [Embedded Linux]     [Barebox]     [Linux MMC]     [Linux IIO]     [Sparse]     [Smatch]     [Linux Arch]     [x86 Platform Driver]     [Linux ACPI]     [Linux IBM ACPI]     [LM Sensors]     [CPU Freq]     [Linux Power Management]     [Linmodems]     [Linux DCCP]     [Linux SCTP]     [ALSA Devel]     [Linux USB]     [Linux PA RISC]     [Linux Samsung SOC]     [MIPS Linux]     [IBM S/390 Linux]     [ARM Linux]     [ARM Kernel]     [ARM MSM]     [Tegra Devel]     [Sparc Linux]     [Linux Security]     [Linux Sound]     [Linux Media]     [Video 4 Linux]     [Linux IRDA Users]     [Linux for the blind]     [Linux RAID]     [Linux ATA RAID]     [Device Mapper]     [Linux SCSI]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Linux IDE]     [Linux SMP]     [Linux AXP]     [Linux Alpha]     [Linux M68K]     [Linux ia64]     [Linux 8086]     [Linux x86_64]     [Linux Config]     [Linux Apps]     [Linux MSDOS]     [Linux X.25]     [Linux Crypto]     [DM Crypt]     [Linux Trace Users]     [Linux Btrace]     [Linux Watchdog]     [Utrace Devel]     [Linux C Programming]     [Linux Assembly]     [Dash]     [DWARVES]     [Hail Devel]     [Linux Kernel Debugger]     [Linux gcc]     [Gcc Help]     [X.Org]     [Wine]

Add to Google Powered by Linux

[Older Kernel Discussion]     [Yosemite National Park Forum]     [Large Format Photos]     [Gimp]     [Yosemite Photos]     [Stuff]