Re: link errors in 2.5.29+bk

Stelian Pop (stelian.pop@fr.alcove.com)
Mon, 29 Jul 2002 14:19:49 +0200


On Mon, Jul 29, 2002 at 01:53:34PM +0300, Meelis Roos wrote:

> Seems to be connected to the recent migration thread changes:
>
> init/init.o: In function `do_pre_smp_initcalls':
> init/init.o(.text+0x59): undefined reference to `migration_init'

The attached patch fixes this.

===== init/main.c 1.59 vs edited =====
--- 1.59/init/main.c Mon Jul 29 08:07:28 2002
+++ edited/init/main.c Mon Jul 29 12:21:56 2002
@@ -526,10 +526,14 @@

static void do_pre_smp_initcalls(void)
{
+#if CONFIG_SMP
extern int migration_init(void);
+#endif
extern int spawn_ksoftirqd(void);

+#if CONFIG_SMP
migration_init();
+#endif
spawn_ksoftirqd();
}

Stelian.

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/