* 2.6.0-test8-microcode
@ 2003-10-18 15:00 Thomas Giese
2003-10-18 15:22 ` 2.6.0-test8-microcode Tigran Aivazian
2003-10-18 15:26 ` 2.6.0-test8-microcode William Lee Irwin III
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Giese @ 2003-10-18 15:00 UTC (permalink / raw)
To: linux-kernel
hi,
IA32 microcode fails in compile, in test7 it does not :
linux:/mnt/hdb1/linux-2.6.0-test8 # make
SPLIT include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CC [M] arch/i386/kernel/microcode.o
arch/i386/kernel/microcode.c: In function `find_matching_ucodes':
arch/i386/kernel/microcode.c:328: parse error before `int'
arch/i386/kernel/microcode.c:329: `ext_tablep' undeclared (first use in this
fun
ction)
arch/i386/kernel/microcode.c:329: (Each undeclared identifier is reported
only o
nce
arch/i386/kernel/microcode.c:329: for each function it appears in.)
make[1]: *** [arch/i386/kernel/microcode.o] Error 1
make: *** [arch/i386/kernel] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.0-test8-microcode
2003-10-18 15:00 2.6.0-test8-microcode Thomas Giese
@ 2003-10-18 15:22 ` Tigran Aivazian
2003-10-18 15:26 ` 2.6.0-test8-microcode William Lee Irwin III
1 sibling, 0 replies; 3+ messages in thread
From: Tigran Aivazian @ 2003-10-18 15:22 UTC (permalink / raw)
To: Thomas Giese; +Cc: linux-kernel
Hi Thomas,
Yes, thank you, it was noticed by several people already. Just apply this
patch and it will compile. The version of gcc that I am using didn't have
a problem with that:
$ gcc --version
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Kind regards
Tigran
>From roland@topspin.com Sat Oct 18 16:20:08 2003
Date: 17 Oct 2003 16:43:29 -0700
From: Roland Dreier <roland@topspin.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.0-test8
Here's a fix for compiling with gcc 2.95 (a variable declaration got
mixed in with code):
--- linux-2.6.0-test8/arch/i386/kernel/microcode.c.orig Fri Oct 17 16:36:47 2003
+++ linux-2.6.0-test8/arch/i386/kernel/microcode.c Fri Oct 17 16:37:03 2003
@@ -324,8 +324,9 @@
/* check extended table checksum */
if (ext_table_size) {
int ext_table_sum = 0;
+ int * ext_tablep;
i = ext_table_size / DWSIZE;
- int * ext_tablep = (((void *) newmc) + MC_HEADER_SIZE + data_size);
+ ext_tablep = (((void *) newmc) + MC_HEADER_SIZE + data_size);
while (i--) ext_table_sum += ext_tablep[i];
if (ext_table_sum) {
printk(KERN_WARNING "microcode: aborting, bad extended signature table checksum\n");
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.0-test8-microcode
2003-10-18 15:00 2.6.0-test8-microcode Thomas Giese
2003-10-18 15:22 ` 2.6.0-test8-microcode Tigran Aivazian
@ 2003-10-18 15:26 ` William Lee Irwin III
1 sibling, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2003-10-18 15:26 UTC (permalink / raw)
To: Thomas Giese; +Cc: linux-kernel
On Sat, Oct 18, 2003 at 05:00:44PM +0200, Thomas Giese wrote:
> IA32 microcode fails in compile, in test7 it does not :
> linux:/mnt/hdb1/linux-2.6.0-test8 # make
> SPLIT include/linux/autoconf.h -> include/config/*
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> CHK include/linux/compile.h
> CC [M] arch/i386/kernel/microcode.o
> arch/i386/kernel/microcode.c: In function `find_matching_ucodes':
> arch/i386/kernel/microcode.c:328: parse error before `int'
> arch/i386/kernel/microcode.c:329: `ext_tablep' undeclared (first use in this
> fun
> ction)
> arch/i386/kernel/microcode.c:329: (Each undeclared identifier is reported
> only o
> nce
> arch/i386/kernel/microcode.c:329: for each function it appears in.)
> make[1]: *** [arch/i386/kernel/microcode.o] Error 1
> make: *** [arch/i386/kernel] Error 2
Hmm, you're supposed to declare variables before any code appears in C.
Maybe all this C99 stuff is turning it into C++.
-- wli
diff -prauN linux-2.6.0-test8/arch/i386/kernel/microcode.c microcode-2.6.0-test8-1/arch/i386/kernel/microcode.c
--- linux-2.6.0-test8/arch/i386/kernel/microcode.c 2003-10-17 14:42:56.000000000 -0700
+++ microcode-2.6.0-test8-1/arch/i386/kernel/microcode.c 2003-10-18 08:21:06.000000000 -0700
@@ -323,9 +323,10 @@ static int find_matching_ucodes (void)
memcpy(newmc, &mc_header, MC_HEADER_SIZE);
/* check extended table checksum */
if (ext_table_size) {
+ int *ext_tablep;
int ext_table_sum = 0;
i = ext_table_size / DWSIZE;
- int * ext_tablep = (((void *) newmc) + MC_HEADER_SIZE + data_size);
+ ext_tablep = (((void *) newmc) + MC_HEADER_SIZE + data_size);
while (i--) ext_table_sum += ext_tablep[i];
if (ext_table_sum) {
printk(KERN_WARNING "microcode: aborting, bad extended signature table checksum\n");
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-18 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-18 15:00 2.6.0-test8-microcode Thomas Giese
2003-10-18 15:22 ` 2.6.0-test8-microcode Tigran Aivazian
2003-10-18 15:26 ` 2.6.0-test8-microcode William Lee Irwin III
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®