[PATCH] setup_per_cpu_areas in 2.5.8pre3

From: Andries.Brouwer@cwi.nl
Date: Sun Apr 14 2002 - 16:15:29 EST


Now that I am writing anyway, one of the changes I needed
to compile 2.5.8pre3 is the following.

--- main.c~ Fri Apr 12 12:10:48 2002
+++ main.c Sun Apr 14 16:11:33 2002
@@ -270,7 +270,9 @@
 #else
 #define smp_init() do { } while (0)
 #endif
-
+static inline void setup_per_cpu_areas(void)
+{
+}
 #else
 
 #ifdef __GENERIC_PER_CPU

There is a nest of #ifdef's there, and in some branches
setup_per_cpu_areas() is not defined.

Of course the real fix is to remove the #ifdef's,
maybe using a weak symbol instead, or some other construction
that defines an empty default that can be replaced by an actual
routine.

Andries
-
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/



This archive was generated by hypermail 2b29 : Mon Apr 15 2002 - 22:00:23 EST