Re: compile problems Re: 2.6.19-rc6-rt5

Ingo Molnar
2006-11-21T07:44:44Z

* Sergio Monteiro Basto <sergio@sergiomb.no-ip.org> 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