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
..
2007-07-26 11:11:56 -07:00
2007-07-19 10:04:52 -07:00
2007-07-19 10:04:43 -07:00
2007-07-20 01:11:59 +02:00
2007-07-19 10:04:45 -07:00
2007-07-21 08:58:23 -05:00
2007-07-21 17:49:15 -07:00
2007-07-19 10:04:54 -07:00
2007-07-18 09:15:20 -04:00
2007-07-18 09:15:20 -04:00
2007-07-17 10:23:13 -07:00
2007-07-19 10:04:44 -07:00
2007-07-18 18:29:37 -04:00
2007-07-19 10:04:41 -07:00
2007-07-18 08:47:40 -07:00
2007-07-26 11:35:17 -07:00
2007-07-17 10:23:13 -07:00
2007-07-19 10:04:49 -07:00
2007-07-24 12:24:59 -07:00
2007-07-18 08:47:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-19 15:21:39 -04:00
2007-07-20 13:41:56 +10:00
2007-07-20 13:10:22 +10:00
2007-07-24 16:55:01 -04:00
2007-07-19 10:04:42 -07:00
2007-07-18 08:47:40 -07:00
2007-07-21 18:37:10 -07:00
2007-07-22 11:03:37 -07:00
2007-07-20 12:33:44 -07:00
2007-07-20 08:24:50 -07:00
2007-07-19 10:04:49 -07:00
2007-07-18 08:47:40 -07:00
2007-07-20 11:23:02 -07:00
2007-07-18 15:57:15 -07:00