[POWERPC] Change ppc_rtas declaration to weak
authorGeoff Levand <geoffrey.levand@am.sony.com>
Mon, 20 Nov 2006 17:44:56 +0000 (18:44 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:39:42 +0000 (20:39 +1100)
commit8dc86ab954d28513f75918d743c40cddbff7388a
treeb19f9393d0d753f1b7a5de6fea62f18262b1f277
parent78dc4c20de0f2cb2aa6d4542f965f889be6da775
[POWERPC] Change ppc_rtas declaration to weak

Change the definition of powerpc's cond_syscall() to use the standard gcc
weak attribute specifier which provides proper support for C linkage as
needed by spu_syscall_table[].

Fixes this powerpc build error with CONFIG_SPU_FS=y, CONFIG_PPC_RTAS=n:

 arch/powerpc/platforms/built-in.o: undefined reference to `ppc_rtas'

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/unistd.h