[2.4 patch][5/6] asm-i386/smpboot.h: fix gcc 3.4 compilation
From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/26/04
- Previous message: Adrian Bunk: "[2.4 patch][6/6] dscc4.c: fix gcc 3.4 compilation"
- In reply to: Adrian Bunk: "[2.4 patch][0/6] fix compile errors with gcc 3.4"
- Next in thread: Adrian Bunk: "Re: [2.4 patch][1/6] ibmphp_res.c: fix gcc 3.4 compilation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 22:04:44 +0200 To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
I got the following compile error when trying to build 2.4.28-pre2 using
gcc 3.4:
<-- snip -->
...
gcc-3.4 -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.28-pre2-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-fno-unit-at-a-time -nostdinc -iwithprefix include
-DKBUILD_BASENAME=process -c -o process.o process.c
In file included from process.c:47:
/home/bunk/linux/kernel-2.4/linux-2.4.28-pre2-full/include/asm/smpboot.h:
In function `target_cpus':
/home/bunk/linux/kernel-2.4/linux-2.4.28-pre2-full/include/asm/smpboot.h:133:
error: label at end of compound statement
make[1]: *** [process.o] Error 1
make[1]: Leaving directory `/home/bunk/linux/kernel-2.4/linux-2.4.28-pre2-full/arch/i386/kernel'
<-- snip -->
The patch below fixes this issue.
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
--- linux-2.4.28-pre2-full/include/asm-i386/smpboot.h.old 2004-08-26 19:45:06.000000000 +0200
+++ linux-2.4.28-pre2-full/include/asm-i386/smpboot.h 2004-08-26 19:48:47.000000000 +0200
@@ -130,8 +130,8 @@
cpu = (cpu+1)%smp_num_cpus;
return cpu_to_physical_apicid(cpu);
default:
+ return cpu_online_map;
}
- return cpu_online_map;
}
#else
#define target_cpus() (cpu_online_map)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Adrian Bunk: "[2.4 patch][6/6] dscc4.c: fix gcc 3.4 compilation"
- In reply to: Adrian Bunk: "[2.4 patch][0/6] fix compile errors with gcc 3.4"
- Next in thread: Adrian Bunk: "Re: [2.4 patch][1/6] ibmphp_res.c: fix gcc 3.4 compilation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|