Re: compile problems Re: 2.6.19-rc6-rt5

From: Ingo Molnar
Date: Tue Nov 21 2006 - 02:45:01 EST



* Sergio Monteiro Basto <sergio@xxxxxxxxxxxxxxxxxx> wrote:

> Now with CONFIG_HOTPLUG_CPU=y I got:
> UPD include/linux/compile.h
> kernel/fork.c:72: error: section of 'tasklist_lock' conflicts with previous declaration
> make[1]: *** [kernel/fork.o] Error 1

this one should be fixed by the patch below.

Ingo

Index: linux/kernel/fork.c
===================================================================
--- linux.orig/kernel/fork.c
+++ linux/kernel/fork.c
@@ -69,7 +69,7 @@ int max_threads; /* tunable limit on nr

DEFINE_PER_CPU(unsigned long, process_counts) = 0;

-__cacheline_aligned DEFINE_RWLOCK(tasklist_lock); /* outer */
+DEFINE_RWLOCK(tasklist_lock); /* outer */

/*
* Delayed mmdrop. In the PREEMPT_RT case we
-
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/