lkml.org 
[lkml]   [1999]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.2.0-pre2: "smp_found_config undeclared" compile error
Date
Compiling Linus' 2.2.0-pre2 with CONFIG_M686 in uni-processor mode
gives:

/usr/src/linux-2.2/include/asm/bugs.h: In function `check_config':
In file included from init/main.c:27:
/usr/src/linux-2.2/include/asm/bugs.h:354: `smp_found_config' undeclared (first use this function)

I guess the check is only interesting in an SMP configuration,
so perhaps this patch will work ? Or should CONFIG_GOOD_APIC
be set only when CONFIG_SMP is set ?


--- linux/include/asm-i386/bugs.h.p2 Fri Jan 1 02:09:29 1999
+++ linux/include/asm-i386/bugs.h Fri Jan 1 02:10:09 1999
@@ -350,7 +350,7 @@
#endif

/* If we were told we had a good APIC for SMP, we'd better be a PPro */
-#ifdef CONFIG_GOOD_APIC
+#if defined(CONFIG_SMP) && defined(CONFIG_GOOD_APIC)
if (smp_found_config && boot_cpu_data.x86 <= 5)
panic("Kernel compiled for PPro+, assumes local APIC without read-before-write bug");
#endif
--
Henrik Storner
Praeterea censeo, Microsoftem esse delendam!


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.028 / U:1.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site