MCORE2 include/asm/module.h:60:2: error: #error unknown processor family [was Re: 2.6.19-rc6-mm1]

From: Mattia Dongili
Date: Thu Nov 23 2006 - 12:27:05 EST


On Thu, Nov 23, 2006 at 02:17:03AM -0800, Andrew Morton wrote:
...
> +x86_64-mm-i386-config-core2.patch

hmmm... this one missed to update also include/asm/module.h:

HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/mod/sumversion.o
In file included from include/linux/module.h:22,
from include/linux/crypto.h:21,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/module.h:60:2: error: #error unknown processor family
HOSTLD scripts/genksyms/genksyms
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....

If the family name is correct the patch is quite trivial :)

Signed-out-by: Mattia Dongili <malattia@xxxxxxxx>
---

diff --git a/include/asm-i386/module.h b/include/asm-i386/module.h
index 424661d..e453565 100644
--- a/include/asm-i386/module.h
+++ b/include/asm-i386/module.h
@@ -26,6 +26,8 @@ struct mod_arch_specific
#define MODULE_PROC_FAMILY "PENTIUMII "
#elif defined CONFIG_MPENTIUMIII
#define MODULE_PROC_FAMILY "PENTIUMIII "
+#elif defined CONFIG_MCORE2
+#define MODULE_PROC_FAMILY "CORE2 "
#elif defined CONFIG_MPENTIUMM
#define MODULE_PROC_FAMILY "PENTIUMM "
#elif defined CONFIG_MPENTIUM4

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