kernel_optimize_test/include
Sam Ravnborg 045e72acf1 fix 'dynreloc miscount' link error on Powerpc
Nathan Lynch <ntl@pobox.com> reported:
2.6.23-rc1 breaks the build for 64-bit powerpc for me (using
maple_defconfig):

  LD      vmlinux.o
powerpc64-unknown-linux-gnu-ld: dynreloc miscount for
kernel/built-in.o, section .opd
powerpc64-unknown-linux-gnu-ld: can not edit opd Bad value
make: *** [vmlinux.o] Error 1

However, I see a possibly related binutils patch:
http://article.gmane.org/gmane.comp.gnu.binutils/33650

It was tracked down to be caused by the weak prototype
declaration in mm.h:
__attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma);

But there is no need to make the declaration weak - only the definition
needs to be marked weak.  So drop the weak declaration.  And in the process
drop the duplicate definition in page.h for powerpc.

Note: the arch_vma_name fix for x86_64 needs to be applied first to avoid
breaking x86_64

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Nathan Lynch <ntl@pobox.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-26 11:35:18 -07:00
..
acpi Pull auto-load-modules into release branch 2007-07-25 01:36:53 -04:00
asm-alpha alpha: long constant 2007-07-26 11:11:57 -07:00
asm-arm arm unaligned.h annotations 2007-07-26 11:11:57 -07:00
asm-arm26 take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
asm-avr32
asm-blackfin
asm-cris
asm-frv
asm-generic
asm-h8300 take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
asm-i386 [x86 setup] Make struct ist_info cross-architecture, and use in setup code 2007-07-25 12:02:21 -07:00
asm-ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-07-25 15:50:20 -07:00
asm-m32r [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-m68k m68k {in,out}_le{16,32} endianness misannotation 2007-07-26 11:11:57 -07:00
asm-m68knommu m68knommu: remove unused mach_trap_init 2007-07-26 11:05:20 -07:00
asm-mips [MIPS] Whitespace cleanup. 2007-07-24 16:02:47 +01:00
asm-parisc [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-powerpc fix 'dynreloc miscount' link error on Powerpc 2007-07-26 11:35:18 -07:00
asm-ppc [POWERPC] Fix ARCH=ppc builds 2007-07-22 21:30:58 +10:00
asm-s390 [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-sh sh: intc - add support for SH7750 and its variants 2007-07-20 18:44:49 +09:00
asm-sh64 take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
asm-sparc take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
asm-sparc64 [SPARC64]: Convert parport to of_platform_driver. 2007-07-20 17:15:35 -07:00
asm-um
asm-v850 take declarations of enable_irq() et.al. to linux/interrupt.h 2007-07-22 11:44:00 -07:00
asm-x86_64 amd64: fix get_user() on bitwise 2007-07-26 11:11:57 -07:00
asm-xtensa include/asm-xtensa/io.h must #include <asm/page.h> 2007-07-24 12:24:59 -07:00
crypto
keys
linux fix 'dynreloc miscount' link error on Powerpc 2007-07-26 11:35:18 -07:00
math-emu
media
mtd
net netfilter endian regressions 2007-07-26 11:11:56 -07:00
pcmcia
rdma
rxrpc
scsi [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
sound [ALSA] version 1.0.14 2007-07-20 11:13:35 +02:00
video
xen xen: xen/page.h compile fix 2007-07-26 11:35:16 -07:00
Kbuild