2000-11-06 17:16:14

by Robert Kaiser

[permalink] [raw]
Subject: unresolved reference to hd_init (2.4.0-test10, ll_rw_blk.c)

Hi,

I just ran into a small problem trying to build the 2.4.0-test10 kernel with
only the "Old hard disk (MFM/RLL/IDE) driver" enabled. The following patch
fixed this for me, (though I'm not sure I haven't broken anything else with it).

diff -ur linux-2.4.0-test10/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
--- linux-2.4.0-test10/drivers/block/ll_rw_blk.c Fri Oct 27 08:35:47 2000
+++ linux/drivers/block/ll_rw_blk.c Mon Nov 6 17:34:39 2000
@@ -1063,7 +1063,7 @@
#if defined(CONFIG_IDE) && defined(CONFIG_BLK_DEV_IDE)
ide_init(); /* this MUST precede hd_init */
#endif
-#if defined(CONFIG_IDE) && defined(CONFIG_BLK_DEV_HD)
+#if defined(CONFIG_IDE) && defined(CONFIG_BLK_DEV_HD) && !defined(CONFIG_BLK_DEV_HD_ONLY)
hd_init();
#endif
#ifdef CONFIG_BLK_DEV_PS2


----------------------------------------------------------------
Robert Kaiser email: [email protected]
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10


2000-11-06 17:28:55

by Arjan van de Ven

[permalink] [raw]
Subject: Re: unresolved reference to hd_init (2.4.0-test10, ll_rw_blk.c)

In article <00110618154301.11022@rob> you wrote:
> Hi,

> I just ran into a small problem trying to build the 2.4.0-test10 kernel with
> only the "Old hard disk (MFM/RLL/IDE) driver" enabled. The following patch
> fixed this for me, (though I'm not sure I haven't broken anything else with it).

The real patch would be:

diff -ur /mnt/raid/1/linux-2.4.0-test10pre6/drivers/ide/Makefile linux/drivers/ide/Makefile
--- /mnt/raid/1/linux-2.4.0-test10pre6/drivers/ide/Makefile Sun Oct 29 14:14:29 2000
+++ linux/drivers/ide/Makefile Sat Oct 28 12:00:44 2000
@@ -31,7 +31,7 @@
ide-obj-$(CONFIG_BLK_DEV_FALCON_IDE) += falconide.o
ide-obj-$(CONFIG_BLK_DEV_GAYLE) += gayle.o
ide-obj-$(CONFIG_BLK_DEV_Q40IDE) += q40ide.o
-ide-obj-$(CONFIG_BLK_DEV_HD) += hd.o
+obj-$(CONFIG_BLK_DEV_HD) += hd.o
ide-obj-$(CONFIG_BLK_DEV_HPT34X) += hpt34x.o
ide-obj-$(CONFIG_BLK_DEV_HPT366) += hpt366.o
ide-obj-$(CONFIG_BLK_DEV_HT6560B) += ht6560b.o


Greetings,
Arjan van de Ven