public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.19-rc5: modular USB rebuilds vmlinux?
@ 2006-11-22 18:45 Andrey Borzenkov
  2006-11-22 18:54 ` [linux-usb-devel] " Randy Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Borzenkov @ 2006-11-22 18:45 UTC (permalink / raw)
  To: linux-usb-devel; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I was under impression that I have fully modular USB. Still:

{pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
make: Entering directory `/home/bor/src/linux-git'
  GEN     /home/bor/build/linux-2.6.19/Makefile
scripts/kconfig/conf -s arch/i386/Kconfig
  Using /home/bor/src/linux-git as source for kernel
  GEN     /home/bor/build/linux-2.6.19/Makefile
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  CC [M]  drivers/usb/core/usb.o
  CC [M]  drivers/usb/core/hub.o
  CC [M]  drivers/usb/core/hcd.o
  CC [M]  drivers/usb/core/urb.o
  CC [M]  drivers/usb/core/message.o
  CC [M]  drivers/usb/core/driver.o
  CC [M]  drivers/usb/core/config.o
  CC [M]  drivers/usb/core/file.o
  CC [M]  drivers/usb/core/buffer.o
  CC [M]  drivers/usb/core/sysfs.o
  CC [M]  drivers/usb/core/endpoint.o
  CC [M]  drivers/usb/core/devio.o
  CC [M]  drivers/usb/core/notify.o
  CC [M]  drivers/usb/core/generic.o
  CC [M]  drivers/usb/core/hcd-pci.o
  CC [M]  drivers/usb/core/inode.o
  CC [M]  drivers/usb/core/devices.o
  LD [M]  drivers/usb/core/usbcore.o
  CC      drivers/usb/host/pci-quirks.o
  LD      drivers/usb/host/built-in.o
 
Sorry? How comes it still compiles something into main kernel?

 {pts/0}% grep USB build/linux-2.6.19/.config | grep -v '^#'
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=m
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_BANDWIDTH=y
CONFIG_USB_DYNAMIC_MINORS=y
CONFIG_USB_SUSPEND=y
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_PL2303=m

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFZJrnR6LMutpd94wRAh3DAJ97nMrIHG3pG4ZBaB8b6svZNm/39ACgt4Yd
19FExn1dKtTtFtyriNpP9dU=
=q9YV
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-usb-devel] 2.6.19-rc5: modular USB rebuilds vmlinux?
  2006-11-22 18:45 2.6.19-rc5: modular USB rebuilds vmlinux? Andrey Borzenkov
@ 2006-11-22 18:54 ` Randy Dunlap
  2006-11-22 19:09   ` Alan Stern
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Randy Dunlap @ 2006-11-22 18:54 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: linux-usb-devel, linux-kernel

On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I was under impression that I have fully modular USB. Still:
> 
> {pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
> make: Entering directory `/home/bor/src/linux-git'
>   GEN     /home/bor/build/linux-2.6.19/Makefile
> scripts/kconfig/conf -s arch/i386/Kconfig
>   Using /home/bor/src/linux-git as source for kernel
>   GEN     /home/bor/build/linux-2.6.19/Makefile
>   CHK     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   CHK     include/linux/compile.h
>   CC [M]  drivers/usb/core/usb.o
>   CC [M]  drivers/usb/core/hub.o
>   CC [M]  drivers/usb/core/hcd.o
>   CC [M]  drivers/usb/core/urb.o
>   CC [M]  drivers/usb/core/message.o
>   CC [M]  drivers/usb/core/driver.o
>   CC [M]  drivers/usb/core/config.o
>   CC [M]  drivers/usb/core/file.o
>   CC [M]  drivers/usb/core/buffer.o
>   CC [M]  drivers/usb/core/sysfs.o
>   CC [M]  drivers/usb/core/endpoint.o
>   CC [M]  drivers/usb/core/devio.o
>   CC [M]  drivers/usb/core/notify.o
>   CC [M]  drivers/usb/core/generic.o
>   CC [M]  drivers/usb/core/hcd-pci.o
>   CC [M]  drivers/usb/core/inode.o
>   CC [M]  drivers/usb/core/devices.o
>   LD [M]  drivers/usb/core/usbcore.o
>   CC      drivers/usb/host/pci-quirks.o
>   LD      drivers/usb/host/built-in.o
>  
> Sorry? How comes it still compiles something into main kernel?

It's just a quirk of the build machinery.
The built-in.o file should be 8 bytes or so, with nothing
really in it.

>  {pts/0}% grep USB build/linux-2.6.19/.config | grep -v '^#'
> CONFIG_USB_ARCH_HAS_HCD=y
> CONFIG_USB_ARCH_HAS_OHCI=y
> CONFIG_USB_ARCH_HAS_EHCI=y
> CONFIG_USB=m
> CONFIG_USB_DEBUG=y
> CONFIG_USB_DEVICEFS=y
> CONFIG_USB_BANDWIDTH=y
> CONFIG_USB_DYNAMIC_MINORS=y
> CONFIG_USB_SUSPEND=y
> CONFIG_USB_OHCI_HCD=m
> CONFIG_USB_OHCI_LITTLE_ENDIAN=y
> CONFIG_USB_ACM=m
> CONFIG_USB_PRINTER=m
> CONFIG_USB_STORAGE=m
> CONFIG_USB_STORAGE_DATAFAB=y
> CONFIG_USB_STORAGE_FREECOM=y
> CONFIG_USB_STORAGE_ISD200=y
> CONFIG_USB_STORAGE_DPCM=y
> CONFIG_USB_STORAGE_USBAT=y
> CONFIG_USB_STORAGE_SDDR09=y
> CONFIG_USB_STORAGE_SDDR55=y
> CONFIG_USB_STORAGE_JUMPSHOT=y
> CONFIG_USB_KBD=m
> CONFIG_USB_MOUSE=m
> CONFIG_USB_SERIAL=m
> CONFIG_USB_SERIAL_GENERIC=y
> CONFIG_USB_SERIAL_PL2303=m

---
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-usb-devel] 2.6.19-rc5: modular USB rebuilds vmlinux?
  2006-11-22 18:54 ` [linux-usb-devel] " Randy Dunlap
@ 2006-11-22 19:09   ` Alan Stern
  2006-11-22 19:13     ` Randy Dunlap
  2006-11-22 19:12   ` Andrey Borzenkov
  2006-11-22 19:40   ` Adrian Bunk
  2 siblings, 1 reply; 6+ messages in thread
From: Alan Stern @ 2006-11-22 19:09 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Andrey Borzenkov, linux-usb-devel, linux-kernel

On Wed, 22 Nov 2006, Randy Dunlap wrote:

> On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > I was under impression that I have fully modular USB. Still:
> > 
> > {pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
> > make: Entering directory `/home/bor/src/linux-git'
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> > scripts/kconfig/conf -s arch/i386/Kconfig
> >   Using /home/bor/src/linux-git as source for kernel
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> >   CHK     include/linux/version.h
> >   CHK     include/linux/utsrelease.h
> >   CHK     include/linux/compile.h
> >   CC [M]  drivers/usb/core/usb.o
> >   CC [M]  drivers/usb/core/hub.o
> >   CC [M]  drivers/usb/core/hcd.o
> >   CC [M]  drivers/usb/core/urb.o
> >   CC [M]  drivers/usb/core/message.o
> >   CC [M]  drivers/usb/core/driver.o
> >   CC [M]  drivers/usb/core/config.o
> >   CC [M]  drivers/usb/core/file.o
> >   CC [M]  drivers/usb/core/buffer.o
> >   CC [M]  drivers/usb/core/sysfs.o
> >   CC [M]  drivers/usb/core/endpoint.o
> >   CC [M]  drivers/usb/core/devio.o
> >   CC [M]  drivers/usb/core/notify.o
> >   CC [M]  drivers/usb/core/generic.o
> >   CC [M]  drivers/usb/core/hcd-pci.o
> >   CC [M]  drivers/usb/core/inode.o
> >   CC [M]  drivers/usb/core/devices.o
> >   LD [M]  drivers/usb/core/usbcore.o
> >   CC      drivers/usb/host/pci-quirks.o
> >   LD      drivers/usb/host/built-in.o
> >  
> > Sorry? How comes it still compiles something into main kernel?
> 
> It's just a quirk of the build machinery.
> The built-in.o file should be 8 bytes or so, with nothing
> really in it.

Not so.  Randy, you missed the line for pci-quirks.o.  It really is a 
non-trivial object file and it really goes into the main kernel.

That's because it actually is a PCI driver, living in a USB source 
directory.  It handles the quirks needed by various PCI-based USB host 
controllers.

Alan Stern


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-usb-devel] 2.6.19-rc5: modular USB rebuilds vmlinux?
  2006-11-22 18:54 ` [linux-usb-devel] " Randy Dunlap
  2006-11-22 19:09   ` Alan Stern
@ 2006-11-22 19:12   ` Andrey Borzenkov
  2006-11-22 19:40   ` Adrian Bunk
  2 siblings, 0 replies; 6+ messages in thread
From: Andrey Borzenkov @ 2006-11-22 19:12 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-usb-devel, linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 22 November 2006 21:54, Randy Dunlap wrote:
> On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > I was under impression that I have fully modular USB. Still:
> >
> > {pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
> > make: Entering directory `/home/bor/src/linux-git'
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> > scripts/kconfig/conf -s arch/i386/Kconfig
> >   Using /home/bor/src/linux-git as source for kernel
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> >   CHK     include/linux/version.h
> >   CHK     include/linux/utsrelease.h
> >   CHK     include/linux/compile.h
> >   CC [M]  drivers/usb/core/usb.o
> >   CC [M]  drivers/usb/core/hub.o
> >   CC [M]  drivers/usb/core/hcd.o
> >   CC [M]  drivers/usb/core/urb.o
> >   CC [M]  drivers/usb/core/message.o
> >   CC [M]  drivers/usb/core/driver.o
> >   CC [M]  drivers/usb/core/config.o
> >   CC [M]  drivers/usb/core/file.o
> >   CC [M]  drivers/usb/core/buffer.o
> >   CC [M]  drivers/usb/core/sysfs.o
> >   CC [M]  drivers/usb/core/endpoint.o
> >   CC [M]  drivers/usb/core/devio.o
> >   CC [M]  drivers/usb/core/notify.o
> >   CC [M]  drivers/usb/core/generic.o
> >   CC [M]  drivers/usb/core/hcd-pci.o
> >   CC [M]  drivers/usb/core/inode.o
> >   CC [M]  drivers/usb/core/devices.o
> >   LD [M]  drivers/usb/core/usbcore.o
> >   CC      drivers/usb/host/pci-quirks.o
> >   LD      drivers/usb/host/built-in.o
> >
> > Sorry? How comes it still compiles something into main kernel?
>
> It's just a quirk of the build machinery.
> The built-in.o file should be 8 bytes or so, with nothing
> really in it.
>

yes, but it still costs extra vmlinuz build when just to rebuild of a single 
module (or subsystem as was in this case) is needed. And this implies also 
reboot - how should one know if this is safe to leave current kernel with new 
modules?

> >  {pts/0}% grep USB build/linux-2.6.19/.config | grep -v '^#'
> > CONFIG_USB_ARCH_HAS_HCD=y
> > CONFIG_USB_ARCH_HAS_OHCI=y
> > CONFIG_USB_ARCH_HAS_EHCI=y
> > CONFIG_USB=m
> > CONFIG_USB_DEBUG=y
> > CONFIG_USB_DEVICEFS=y
> > CONFIG_USB_BANDWIDTH=y
> > CONFIG_USB_DYNAMIC_MINORS=y
> > CONFIG_USB_SUSPEND=y
> > CONFIG_USB_OHCI_HCD=m
> > CONFIG_USB_OHCI_LITTLE_ENDIAN=y
> > CONFIG_USB_ACM=m
> > CONFIG_USB_PRINTER=m
> > CONFIG_USB_STORAGE=m
> > CONFIG_USB_STORAGE_DATAFAB=y
> > CONFIG_USB_STORAGE_FREECOM=y
> > CONFIG_USB_STORAGE_ISD200=y
> > CONFIG_USB_STORAGE_DPCM=y
> > CONFIG_USB_STORAGE_USBAT=y
> > CONFIG_USB_STORAGE_SDDR09=y
> > CONFIG_USB_STORAGE_SDDR55=y
> > CONFIG_USB_STORAGE_JUMPSHOT=y
> > CONFIG_USB_KBD=m
> > CONFIG_USB_MOUSE=m
> > CONFIG_USB_SERIAL=m
> > CONFIG_USB_SERIAL_GENERIC=y
> > CONFIG_USB_SERIAL_PL2303=m
>
> ---
> ~Randy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFZKEsR6LMutpd94wRAugsAJ9aGrMgXmRXwSHPsg7CVPHXLUSc2QCdFoij
akMXiiVn6VJJ653qvL8w0f8=
=qvQ4
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-usb-devel] 2.6.19-rc5: modular USB rebuilds vmlinux?
  2006-11-22 19:09   ` Alan Stern
@ 2006-11-22 19:13     ` Randy Dunlap
  0 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2006-11-22 19:13 UTC (permalink / raw)
  To: Alan Stern; +Cc: Andrey Borzenkov, linux-usb-devel, linux-kernel

Alan Stern wrote:
> On Wed, 22 Nov 2006, Randy Dunlap wrote:
> 
>> On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> I was under impression that I have fully modular USB. Still:
>>>
>>> {pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
>>> make: Entering directory `/home/bor/src/linux-git'
>>>   GEN     /home/bor/build/linux-2.6.19/Makefile
>>> scripts/kconfig/conf -s arch/i386/Kconfig
>>>   Using /home/bor/src/linux-git as source for kernel
>>>   GEN     /home/bor/build/linux-2.6.19/Makefile
>>>   CHK     include/linux/version.h
>>>   CHK     include/linux/utsrelease.h
>>>   CHK     include/linux/compile.h
>>>   CC [M]  drivers/usb/core/usb.o
>>>   CC [M]  drivers/usb/core/hub.o
>>>   CC [M]  drivers/usb/core/hcd.o
>>>   CC [M]  drivers/usb/core/urb.o
>>>   CC [M]  drivers/usb/core/message.o
>>>   CC [M]  drivers/usb/core/driver.o
>>>   CC [M]  drivers/usb/core/config.o
>>>   CC [M]  drivers/usb/core/file.o
>>>   CC [M]  drivers/usb/core/buffer.o
>>>   CC [M]  drivers/usb/core/sysfs.o
>>>   CC [M]  drivers/usb/core/endpoint.o
>>>   CC [M]  drivers/usb/core/devio.o
>>>   CC [M]  drivers/usb/core/notify.o
>>>   CC [M]  drivers/usb/core/generic.o
>>>   CC [M]  drivers/usb/core/hcd-pci.o
>>>   CC [M]  drivers/usb/core/inode.o
>>>   CC [M]  drivers/usb/core/devices.o
>>>   LD [M]  drivers/usb/core/usbcore.o
>>>   CC      drivers/usb/host/pci-quirks.o
>>>   LD      drivers/usb/host/built-in.o
>>>  
>>> Sorry? How comes it still compiles something into main kernel?
>> It's just a quirk of the build machinery.
>> The built-in.o file should be 8 bytes or so, with nothing
>> really in it.
> 
> Not so.  Randy, you missed the line for pci-quirks.o.  It really is a 
> non-trivial object file and it really goes into the main kernel.
> 
> That's because it actually is a PCI driver, living in a USB source 
> directory.  It handles the quirks needed by various PCI-based USB host 
> controllers.

Damm.  Thanks, Alan.

-- 
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-usb-devel] 2.6.19-rc5: modular USB rebuilds vmlinux?
  2006-11-22 18:54 ` [linux-usb-devel] " Randy Dunlap
  2006-11-22 19:09   ` Alan Stern
  2006-11-22 19:12   ` Andrey Borzenkov
@ 2006-11-22 19:40   ` Adrian Bunk
  2 siblings, 0 replies; 6+ messages in thread
From: Adrian Bunk @ 2006-11-22 19:40 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Andrey Borzenkov, linux-usb-devel, linux-kernel

On Wed, Nov 22, 2006 at 10:54:54AM -0800, Randy Dunlap wrote:
> On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
> 
> > I was under impression that I have fully modular USB. Still:
> > 
> > {pts/1}% make -C ~/src/linux-git O=$HOME/build/linux-2.6.19
> > make: Entering directory `/home/bor/src/linux-git'
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> > scripts/kconfig/conf -s arch/i386/Kconfig
> >   Using /home/bor/src/linux-git as source for kernel
> >   GEN     /home/bor/build/linux-2.6.19/Makefile
> >   CHK     include/linux/version.h
> >   CHK     include/linux/utsrelease.h
> >   CHK     include/linux/compile.h
> >   CC [M]  drivers/usb/core/usb.o
> >   CC [M]  drivers/usb/core/hub.o
> >   CC [M]  drivers/usb/core/hcd.o
> >   CC [M]  drivers/usb/core/urb.o
> >   CC [M]  drivers/usb/core/message.o
> >   CC [M]  drivers/usb/core/driver.o
> >   CC [M]  drivers/usb/core/config.o
> >   CC [M]  drivers/usb/core/file.o
> >   CC [M]  drivers/usb/core/buffer.o
> >   CC [M]  drivers/usb/core/sysfs.o
> >   CC [M]  drivers/usb/core/endpoint.o
> >   CC [M]  drivers/usb/core/devio.o
> >   CC [M]  drivers/usb/core/notify.o
> >   CC [M]  drivers/usb/core/generic.o
> >   CC [M]  drivers/usb/core/hcd-pci.o
> >   CC [M]  drivers/usb/core/inode.o
> >   CC [M]  drivers/usb/core/devices.o
> >   LD [M]  drivers/usb/core/usbcore.o
> >   CC      drivers/usb/host/pci-quirks.o
> >   LD      drivers/usb/host/built-in.o
> >  
> > Sorry? How comes it still compiles something into main kernel?
> 
> It's just a quirk of the build machinery.
> The built-in.o file should be 8 bytes or so, with nothing
> really in it.
>...

No, it's something different:

Note that drivers/usb/host/pci-quirks.o is built non-modular since it 
won't work modular.

> ~Randy

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-22 19:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22 18:45 2.6.19-rc5: modular USB rebuilds vmlinux? Andrey Borzenkov
2006-11-22 18:54 ` [linux-usb-devel] " Randy Dunlap
2006-11-22 19:09   ` Alan Stern
2006-11-22 19:13     ` Randy Dunlap
2006-11-22 19:12   ` Andrey Borzenkov
2006-11-22 19:40   ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox