2.6.19-rc5: modular USB rebuilds vmlinux?
-----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/Makefilescripts/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=yCONFIG_USB=mCONFIG_USB_DEBUG=yCONFIG_USB_DEVICEFS=yCONFIG_USB_BANDWIDTH=yCONFIG_USB_DYNAMIC_MINORS=yCONFIG_USB_SUSPEND=yCONFIG_USB_OHCI_HCD=m CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_STORAGE=mCONFIG_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=yCONFIG_USB_KBD=mCONFIG_USB_MOUSE=mCONFIG_USB_SERIAL=mCONFIG_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-----
Quoted 35 lines · On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I 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/Makefilescripts/kconfig/conf-sarch/i386/Kconfig
Using/home/bor/src/linux-gitas source for kernelGEN /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
Quoted 1 line
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.
Quoted 20 lines
{pts/0}% grep USB build/linux-2.6.19/.config | grep -v '^#'
CONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB=mCONFIG_USB_DEBUG=yCONFIG_USB_DEVICEFS=yCONFIG_USB_BANDWIDTH=yCONFIG_USB_DYNAMIC_MINORS=yCONFIG_USB_SUSPEND=yCONFIG_USB_OHCI_HCD=mCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_STORAGE=mCONFIG_USB_STORAGE_DATAFAB=yCONFIG_USB_STORAGE_FREECOM=yCONFIG_USB_STORAGE_ISD200=yCONFIG_USB_STORAGE_DPCM=yCONFIG_USB_STORAGE_USBAT=y
Quoted 8 lines
CONFIG_USB_STORAGE_SDDR09=yCONFIG_USB_STORAGE_SDDR55=yCONFIG_USB_STORAGE_JUMPSHOT=yCONFIG_USB_KBD=mCONFIG_USB_MOUSE=mCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_PL2303=m
---
~Randy
Quoted 37 lines · Randy Dunlap
Quoted 35 lines · On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I 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/Makefilescripts/kconfig/conf-sarch/i386/Kconfig
Using/home/bor/src/linux-gitas source for kernelGEN /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
Quoted 5 lines
Quoted 1 line
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
Quoted 39 lines · Alan Stern
Quoted 37 lines · Randy Dunlap
Quoted 35 lines · On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I 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/Makefilescripts/kconfig/conf-sarch/i386/Kconfig
Using/home/bor/src/linux-gitas source for kernelGEN /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
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
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.
Signature · 1 line
~Randy
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 36 lines · Randy Dunlap
Quoted 35 lines · On Wed, 22 Nov 2006 21:45:55 +0300 Andrey Borzenkov wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I 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/Makefilescripts/kconfig/conf-sarch/i386/Kconfig
Using/home/bor/src/linux-gitas source for kernelGEN /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
Quoted 6 lines
Quoted 1 line
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?
Quoted 29 lines
Quoted 20 lines
{pts/0}% grep USB build/linux-2.6.19/.config | grep -v '^#'
CONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB=mCONFIG_USB_DEBUG=yCONFIG_USB_DEVICEFS=yCONFIG_USB_BANDWIDTH=yCONFIG_USB_DYNAMIC_MINORS=yCONFIG_USB_SUSPEND=yCONFIG_USB_OHCI_HCD=mCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_ACM=mCONFIG_USB_PRINTER=mCONFIG_USB_STORAGE=mCONFIG_USB_STORAGE_DATAFAB=yCONFIG_USB_STORAGE_FREECOM=yCONFIG_USB_STORAGE_ISD200=yCONFIG_USB_STORAGE_DPCM=yCONFIG_USB_STORAGE_USBAT=yQuoted 8 lines
CONFIG_USB_STORAGE_SDDR09=yCONFIG_USB_STORAGE_SDDR55=yCONFIG_USB_STORAGE_JUMPSHOT=yCONFIG_USB_KBD=mCONFIG_USB_MOUSE=mCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_PL2303=m
Quoted 2 lines
---
~Randy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFZKEsR6LMutpd94wRAugsAJ9aGrMgXmRXwSHPsg7CVPHXLUSc2QCdFoij akMXiiVn6VJJ653qvL8w0f8=
=qvQ4
-----END PGP SIGNATURE-----
Quoted 34 lines · Randy Dunlap
Quoted 32 lines · 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/Makefilescripts/kconfig/conf-sarch/i386/Kconfig
Using/home/bor/src/linux-gitas source for kernelGEN /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
Quoted 6 lines
Quoted 1 line
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.
Quoted 1 line
~Randy
cu
Adrian
Signature · 4 lines
"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