]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix SMP compilation with 'multiquad' driver
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 20 Jun 2002 06:41:54 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 20 Jun 2002 06:41:54 +0000 (23:41 -0700)
The 2.4.18pre10 kernel, like many if its predecessors, can't compile
the multiquad driver in an SMP kernel (maybe only as a module; it's
been a long time since I wrote this fix).  Here's a patch.

arch/i386/boot/compressed/misc.c
arch/i386/kernel/i386_ksyms.c
arch/i386/kernel/smpboot.c

index e5dd5627dd99e92a67bb03587e33c53e92eb6284..bbefb67d5d6553c8b6f8308d5fa0cb0acb6aa824 100644 (file)
@@ -125,7 +125,7 @@ static int vidport;
 static int lines, cols;
 
 #ifdef CONFIG_MULTIQUAD
-static void *xquad_portio = NULL;
+static void * const xquad_portio = NULL;
 #endif
 
 #include "../../../../lib/inflate.c"
index be8ebcfcfb5dc62362dd48a0679adb89d4dc29ea..86ce6170a11d72441cf70354b0589bb75dac7a5f 100644 (file)
@@ -176,3 +176,7 @@ extern int is_sony_vaio_laptop;
 EXPORT_SYMBOL(is_sony_vaio_laptop);
 
 EXPORT_SYMBOL(__PAGE_KERNEL);
+
+#ifdef CONFIG_MULTIQUAD
+EXPORT_SYMBOL(xquad_portio);
+#endif
index 7574ac2bce5b21b566cd5e49f643dc49e9b6505d..d77a1fb38d0f00f1026de6e6c5892037a82e0fc0 100644 (file)
@@ -1011,7 +1011,7 @@ extern int prof_counter[NR_CPUS];
 
 static int boot_cpu_logical_apicid;
 /* Where the IO area was mapped on multiquad, always 0 otherwise */
-void *xquad_portio = NULL;
+void *xquad_portio;
 
 int cpu_sibling_map[NR_CPUS] __cacheline_aligned;