Re: [PATCH] x86_64: Change FIRST_SYSTEM_VECTOR to a variable.

From: Alan Mayer
Date: Wed Apr 16 2008 - 16:17:33 EST



Subject: [PATCH] x86_64: Fix build error from FIRST_SYSTEM_VECTOR patch

From: Alan Mayer <ajm@xxxxxxx>

Fixes the build error introduced by my FIRST_SYSTEM_VECTOR patch

Signed-off-by: Alan Mayer <ajm@xxxxxxx>

---
Index: ingo/arch/x86/kernel/apic_32.c
===================================================================
--- ingo.orig/arch/x86/kernel/apic_32.c 2008-04-10 14:02:10.000000000 -0500
+++ ingo/arch/x86/kernel/apic_32.c 2008-04-16 14:28:34.000000000 -0500
@@ -74,6 +74,10 @@
int local_apic_timer_c2_ok;
EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok);

+int first_system_vector = 0xfe;
+
+char system_vectors[NR_VECTORS] = { [0 ... NR_VECTORS-1] = SYS_VECTOR_FREE};
+
/*
* Debug level, exported for io_apic.c
*/
Index: ingo/arch/x86/kernel/io_apic_32.c
===================================================================
--- ingo.orig/arch/x86/kernel/io_apic_32.c 2008-04-10 14:02:10.000000000 -0500
+++ ingo/arch/x86/kernel/io_apic_32.c 2008-04-16 14:29:07.000000000 -0500
@@ -73,9 +73,9 @@

static int disable_timer_pin_1 __initdata;

-int first_system_vector = 0xfe;
+extern int first_system_vector;

-char system_vectors[NR_VECTORS] = { [0 ... NR_VECTORS-1] = SYS_VECTOR_FREE};
+extern char system_vectors[];

/*
* Rough estimation of how many shared IRQs there are, can

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