mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.1-ac breaks parport_pc when CONFIG_PCI=n
@ 2001-02-16  0:14 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2001-02-16  0:14 UTC (permalink / raw)
  To: alan, twaugh; +Cc: linux-kernel

2.4.1-ac breaks parport_pc in PCI-less configs.
Attempting to 'make vmlinux' in 2.4.1-ac14 with

# CONFIG_MODULES is not set
# CONFIG_PCI is not set
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y

results in

drivers/parport/driver.o: In function `parport_pc_init_superio':
drivers/parport/driver.o(.text.init+0x1311): undefined reference to `pci_devices'
drivers/parport/driver.o(.text.init+0x1316): undefined reference to `pci_devices'
drivers/parport/driver.o(.text.init+0x1323): undefined reference to `pci_devices'
make: *** [vmlinux] Error 1

parport_pc_init_superio() contains a pci_for_each_dev loop. This macro
references pci_devices which doesn't exist when CONFIG_PCI=n.
2.4.1 vanilla has a #ifdef CONFIG_PCI/#endif pair around the offending
code, but 2.4.1-ac removes the #ifdef leading to the error above.

Either the #ifdef needs to be put back in, or pci_for_each_dev should
have a dummy #define in <linux/pci.h> for !CONFIG_PCI, like many of the
other pci functions.

/Mikael

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-16  0:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-16  0:14 2.4.1-ac breaks parport_pc when CONFIG_PCI=n Mikael Pettersson

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

all inboxes | Powered by JetHome®