summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/asm-prototypes.h
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-03-08 22:31:59 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-13 15:50:42 +1100
commite82d70cf965072a3872ea97b7d8df4b6f29fc09f (patch)
treeb6f6ffb1c69b6cdc51dd4b8acafcf5b69f6d4402 /arch/powerpc/include/asm/asm-prototypes.h
parentd15a261d876da3267c8c706ef21e7fdf10c582be (diff)
powerpc/32: Add missing prototypes for (early|machine)_init()
early_init() and machine_init() have no prototype, add one in asm-prototypes.h. Fixes the following warnings (treated as error in W=1): arch/powerpc/kernel/setup_32.c:68:30: error: no previous prototype for ‘early_init’ arch/powerpc/kernel/setup_32.c:99:21: error: no previous prototype for ‘machine_init’ Signed-off-by: Mathieu Malaterre <malat@debian.org> [mpe: Move them to asm-prototypes.h, drop other functions] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/asm-prototypes.h')
-rw-r--r--arch/powerpc/include/asm/asm-prototypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/asm-prototypes.h b/arch/powerpc/include/asm/asm-prototypes.h
index 4d8b89b46018..0bdeff415a72 100644
--- a/arch/powerpc/include/asm/asm-prototypes.h
+++ b/arch/powerpc/include/asm/asm-prototypes.h
@@ -95,7 +95,10 @@ int sys_debug_setcontext(struct ucontext __user *ctx,
struct pt_regs *regs);
int
ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct timeval __user *tvp);
+unsigned long __init early_init(unsigned long dt_ptr);
+void __init machine_init(u64 dt_ptr);
#endif
+
long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low,
u32 len_high, u32 len_low);
long sys_switch_endian(void);