[PATCH] edd (Re: Linux 2.6.8-rc1)

Randy.Dunlap
2004-07-11T23:07:42Z

| Matt Domsch:
| o EDD: store mbr_signature on first 16 int13 devices
| o EDD: x86-64 build fix
|

drivers/built-in.o: In function `edd_has_mbr_signature':
drivers/built-in.o(.text+0x13b84f): undefined reference to `edd'
drivers/built-in.o: In function `edd_has_edd_info':
drivers/built-in.o(.text+0x13b871): undefined reference to `edd'
drivers/built-in.o: In function `edd_device_register':
drivers/built-in.o(.text+0x13c7ab): undefined reference to `edd'
drivers/built-in.o(.text+0x13c7c3): undefined reference to `edd'
drivers/built-in.o: In function `edd_init':
drivers/built-in.o(.init.text+0xd395): undefined reference to `edd'
drivers/built-in.o(.init.text+0xd39c): more undefined references to `edd' follow
make: *** [.tmp_vmlinux1] Error 1

CONFIG_EDD=y on X86o

'edd' needs to be exported for drivers/firmware/edd.c

diffstat:=
arch/i386/kernel/setup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./arch/i386/kernel/setup.c~edd_reference ./arch/i386/kernel/setup.c
--- ./arch/i386/kernel/setup.c~edd_reference 2004-07-11 15:47:27.000000000 -0700
+++ ./arch/i386/kernel/setup.c 2004-07-11 15:42:05.000000000 -0700
@@ -628,10 +628,10 @@ static int __init copy_e820_map(struct e
}

#if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
+
struct edd edd;
-#ifdef CONFIG_EDD_MODULE
EXPORT_SYMBOL(edd);
-#endif
+
/**
* copy_edd() - Copy the BIOS EDD information
* from boot_params into a safe place.