[lkml]   [2007]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: EDD build error
On Tuesday 26 June 2007, Randy Dunlap wrote:

> ERROR: "pci_get_bus_and_slot" [drivers/firmware/edd.ko] undefined!
> make[1]: *** [__modpost] Error 1
> Should EDD depend on PCI or should some parts of edd.c be stubbed?

I'd suggest to simply stub it, as attached (untested, as my crap-Awarded BIOS
only has 2.1). It may not be nice to pull in the PCI defs and then return NULL
regardless, but should be safe in your case. Does that work?


--- drivers/firmware/edd.c.orig 2007-04-26 05:08:32.000000000 +0200
+++ drivers/firmware/edd.c 2007-06-26 23:56:32.000000000 +0200
@@ -669,10 +669,14 @@
struct edd_info *info = edd_dev_get_info(edev);

if (edd_dev_is_type(edev, "PCI")) {
+#ifdef CONFIG_PCI
return pci_find_slot(info->params.interface_path.pci.bus,
+ printk(KERN_WARNING "EDD referenced a PCI device for drive 0x%02x, but PCI is not configured\n", edev->index);
return NULL;
 \ /
  Last update: 2007-06-27 00:19    [W:0.094 / U:13.972 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site