[PATCH] setup_per_cpu_areas in 2.5.8pre3

Andries.Brouwer@cwi.nl
Sun, 14 Apr 2002 21:15:29 GMT


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/