|
[PATCH] x86_64: Work around Re: 2.6.14-git1 (and -git2) build failure on AM: msg#00153linux.ports.x86-64.general
On Sunday 30 October 2005 15:03, Martin J. Bligh wrote: > CC arch/x86_64/pci/../../i386/pci/fixup.o > arch/x86_64/pci/../../i386/pci/fixup.c: In function `pci_fixup_i450nx': > arch/x86_64/pci/../../i386/pci/fixup.c:13: error: pci_fixup_i450nx causes a > section type conflict > make[1]: *** [arch/x86_64/pci/../../i386/pci/fixup.o] Error 1 > make: *** [arch/x86_64/pci] Error 2 > > Config: http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/amd64 > I think it's a gcc bug. Anyways, this should work around it. Linus, can you please apply it? --- Work around gcc bug that causes build failures like (exact function it is reported on varies with compiler version and optimization level) > arch/x86_64/pci/../../i386/pci/fixup.c: In function `pci_fixup_i450nx': > arch/x86_64/pci/../../i386/pci/fixup.c:13: error: pci_fixup_i450nx causes a > section type conflict with !CONFIG_HOTPLUG. It makes the !CONFIG_HOTPLUG case act like CONFIG_HOTPLUG. This wastes a bit of memory, but is not too bad. The sections are legitimate, but gcc somehow gets confused. Compiling with -O3 seems to also help at least with gcc 4, but I'm not sure it'll help everything. Splitting up the file might a different option. Signed-off-by: Andi Kleen <ak@xxxxxxx> diff -u linux-2.6.14-git2/arch/i386/pci/fixup.c-o linux-2.6.14-git2/arch/i386/pci/fixup.c --- linux-2.6.14-git2/arch/i386/pci/fixup.c-o 2005-10-30 16:09:41.000000000 +0100 +++ linux-2.6.14-git2/arch/i386/pci/fixup.c 2005-10-30 16:42:32.000000000 +0100 @@ -8,6 +8,9 @@ #include <linux/init.h> #include "pci.h" +/* Works around a gcc bug which gets confused with so many section switches */ +#undef __devinit +#define __devinit static void __devinit pci_fixup_i450nx(struct pci_dev *d) { |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: 4GB memory and Intel Dual-Core system: 00153, Dave Jones |
|---|---|
| Next by Date: | Re: [PATCH] x86_64: Work around Re: 2.6.14-git1 (and -git2) build failure on AMD64: 00153, Roland Dreier |
| Previous by Thread: | Re: 4GB memory and Intel Dual-Core systemi: 00153, Dave Jones |
| Next by Thread: | Re: [PATCH] x86_64: Work around Re: 2.6.14-git1 (and -git2) build failure on AMD64: 00153, Roland Dreier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |