From: Michael Brown Date: Mon, 5 Jun 2006 16:17:52 +0000 (+0000) Subject: Force pci.o to be included. X-Git-Tag: v0.9.3~1302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02df45352c8a9fd492de7f073fc42173db391881;p=thirdparty%2Fipxe.git Force pci.o to be included. Print warning message at probe time. --- diff --git a/src/drivers/net/legacy.c b/src/drivers/net/legacy.c index 6e9c8ae92..96b3bcbc2 100644 --- a/src/drivers/net/legacy.c +++ b/src/drivers/net/legacy.c @@ -81,6 +81,9 @@ int legacy_probe ( struct pci_device *pci, return rc; } + /* Do not remove this message */ + printf ( "WARNING: Using legacy NIC wrapper\n" ); + return 0; } @@ -106,3 +109,5 @@ int dummy_connect ( struct nic *nic __unused ) { void dummy_irq ( struct nic *nic __unused, irq_action_t irq_action __unused ) { return; } + +REQUIRE_OBJECT ( pci );