Hi all!
I'm currently working with Linux in a hardware virtualization
environment (L4 microkernel). During tests, we discovered, that there is
some incosistency in the kernel configuration dependencies:
the file "drivers/usb/host/pci-quirks.c" is added to the kernel as soon
as PCI support is activated, even if USB support is completely disabled.
We discovered this issue while trying to run multiple Linux instances
simultaneously.
Is there a special need, that the "drivers/usb/host/pci-quirks.c" is
compiled into the kernel even if USB support is disabled?
I suggest the attached patch to resolve that problem. The file then is
only included if PCI and USB support is enabled.
Best regards,
Oskar.
--- drivers/usb/host/Makefile.orig 2006-01-24 12:28:11.000000000 +0100
+++ drivers/usb/host/Makefile 2006-01-24 12:27:38.000000000 +0100
@@ -2,7 +2,15 @@
# Makefile for USB Host Controller Drivers
#
-obj-$(CONFIG_PCI) += pci-quirks.o
+# only compile pci-quirks if PCI is enabled
+# and USB is either compiled as a module
+ifeq ($(CONFIG_USB),m)
+ obj-$(CONFIG_PCI) += pci-quirks.o
+endif
+# or directly into the kernel
+ifeq ($(CONFIG_USB),y)
+ obj-$(CONFIG_PCI) += pci-quirks.o
+endif
obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]