mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Compilation problems with local APIC for uniprocessors in linux 2.4.20-ac2
@ 2002-12-11 23:27 system_lists
  2002-12-12  1:25 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: system_lists @ 2002-12-11 23:27 UTC (permalink / raw)
  To: linux-kernel


I got:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-ac2/include 
-I/usr/lib/gcc-lib/i386-linux/3.2.2/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=mpparse  -c -o mpparse.o mpparse.c
mpparse.c:75: `dest_LowestPrio' undeclared here (not in a function)
mpparse.c: In function `smp_read_mpc':
mpparse.c:607: `dest_Fixed' undeclared (first use in this function)
mpparse.c:607: (Each undeclared identifier is reported only once
mpparse.c:607: for each function it appears in.)
mpparse.c:607: `dest_LowestPrio' undeclared (first use in this function)
make[1]: *** [mpparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-ac2/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2


the variable is not defined or is not "inherited".

Seeya


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation problems with local APIC for uniprocessors in linux 2.4.20-ac2
  2002-12-11 23:27 Compilation problems with local APIC for uniprocessors in linux 2.4.20-ac2 system_lists
@ 2002-12-12  1:25 ` Alan Cox
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2002-12-12  1:25 UTC (permalink / raw)
  To: system_lists; +Cc: Linux Kernel Mailing List

Thanks. Hopefully tha will go away in 21pre1-ac1 once I have the merge
done. Marcelo  merged the final summit code so I can now back out a lot
of not quite final summit code and other cruft 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation problems with local APIC for uniprocessors in  linux 2.4.20-ac2
       [not found] <fa.frihumv.5jq19j@ifi.uio.no>
@ 2002-12-13 15:32 ` Steffen Maier
  0 siblings, 0 replies; 3+ messages in thread
From: Steffen Maier @ 2002-12-13 15:32 UTC (permalink / raw)
  To: system_lists; +Cc: linux-kernel

On Wed, 11 Dec 2002, system_lists@nullzone.org wrote:
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-ac2/include 
> -I/usr/lib/gcc-lib/i386-linux/3.2.2/include -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
> -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix 
> include -DKBUILD_BASENAME=mpparse  -c -o mpparse.o mpparse.c
> mpparse.c:75: `dest_LowestPrio' undeclared here (not in a function)
> mpparse.c: In function `smp_read_mpc':
> mpparse.c:607: `dest_Fixed' undeclared (first use in this function)
> mpparse.c:607: (Each undeclared identifier is reported only once
> mpparse.c:607: for each function it appears in.)
> mpparse.c:607: `dest_LowestPrio' undeclared (first use in this function)
> make[1]: *** [mpparse.o] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4.20-ac2/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2

I just bumped into the same error using 2.4.20-ac1 and came up with the 
appended short term fix.

HTH,
Steffen.


diff -ur linux-2.4.20-ac1_orig/arch/i386/kernel/mpparse.c linux-2.4.20-ac1/arch/i386/kernel/mpparse.c
--- linux-2.4.20-ac1_orig/arch/i386/kernel/mpparse.c	Fri Dec 13 16:24:47 2002
+++ linux-2.4.20-ac1/arch/i386/kernel/mpparse.c	Fri Dec 13 16:22:01 2002
@@ -28,6 +28,7 @@
 #include <asm/mpspec.h>
 #include <asm/pgalloc.h>
 #include <asm/smpboot.h>
+#include <asm/io_apic.h>
 
 /* Have we found an MP table */
 int smp_found_config;
diff -ur linux-2.4.20-ac1_orig/include/asm/io_apic.h linux-2.4.20-ac1/include/asm/io_apic.h
--- linux-2.4.20-ac1_orig/include/asm/io_apic.h	Fri Dec 13 16:24:39 2002
+++ linux-2.4.20-ac1/include/asm/io_apic.h	Fri Dec 13 16:27:35 2002
@@ -47,17 +47,6 @@
 extern int nr_ioapics;
 extern int nr_ioapic_registers[MAX_IO_APICS];
 
-enum ioapic_irq_destination_types {
-	dest_Fixed = 0,
-	dest_LowestPrio = 1,
-	dest_SMI = 2,
-	dest__reserved_1 = 3,
-	dest_NMI = 4,
-	dest_INIT = 5,
-	dest__reserved_2 = 6,
-	dest_ExtINT = 7
-};
-
 struct IO_APIC_route_entry {
 	__u32	vector		:  8,
 		delivery_mode	:  3,	/* 000: FIXED
@@ -147,4 +136,15 @@
 #define io_apic_assign_pci_irqs 0
 #endif
 
+enum ioapic_irq_destination_types {
+	dest_Fixed = 0,
+	dest_LowestPrio = 1,
+	dest_SMI = 2,
+	dest__reserved_1 = 3,
+	dest_NMI = 4,
+	dest_INIT = 5,
+	dest__reserved_2 = 6,
+	dest_ExtINT = 7
+};
+
 #endif


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-13 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11 23:27 Compilation problems with local APIC for uniprocessors in linux 2.4.20-ac2 system_lists
2002-12-12  1:25 ` Alan Cox
     [not found] <fa.frihumv.5jq19j@ifi.uio.no>
2002-12-13 15:32 ` Steffen Maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®