[PATCH] 2.6.9-ac6 ide-disk.ko undefined symbols

From: Tomas Szepe
Date: Wed Nov 03 2004 - 19:52:59 EST


On Nov-01 2004, Mon, 13:15 +0000
Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> 2.6.9-ac6

*** Warning: "ide_drive_from_key" [drivers/ide/ide-disk.ko] undefined!
*** Warning: "ide_cfg_sem" [drivers/ide/ide-disk.ko] undefined!

This problem does not exist in vanilla 2.6.9.
Trivial fix follows -- tested, seems to work.

--
Tomas Szepe <szepe@xxxxxxxxxxxxxxx>


diff -urN a/drivers/ide/ide.c b/drivers/ide/ide.c
--- a/drivers/ide/ide.c 2004-11-04 01:26:11.000000000 +0100
+++ b/drivers/ide/ide.c 2004-11-04 01:25:28.000000000 +0100
@@ -175,6 +175,7 @@
static int initializing; /* set while initializing built-in drivers */

DECLARE_MUTEX(ide_cfg_sem);
+EXPORT_SYMBOL(ide_cfg_sem);
spinlock_t ide_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;

#ifdef CONFIG_BLK_DEV_IDEPCI
@@ -349,6 +350,8 @@
return ret;
}

+EXPORT_SYMBOL(ide_drive_from_key);
+
/*
* ide_drive_to_key - turn drive to persistent key
* @drive: drive to use
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/