checkpoint/powerpc: fix build break with CONFIG_CHECKPOINT=n
PATCH 1/1 checkpoint/powerpc: fix build break with CONFIG_CHECKPOINT=n
do_sys_checkpoint and do_sys_restart don't exist when checkpoint is turned off, so move references to these to code which is built only when CONFIG_CHECKPOINT=y.
Signed-off-by Nathan Lynch <[email protected]>
--- arch/powerpc/kernel/checkpoint.c | 18 ++++++++++++++++++ arch/powerpc/kernel/process.c | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-)
arch/powerpc/kernel/checkpoint.c +18 -0
@@ -531,3 +531,21 @@ int restore_mm_context(struct ckpt_ctx *ctx, struct mm_struct *mm) {return 0 ; } + +int sys_checkpoint (unsigned long pid,unsigned long fd,unsigned long flags, +unsigned long logfd,unsigned long p5,unsigned long p6, +struct pt_regs *regs) +{ +CHECK_FULL_REGS (regs); + +return do_sys_checkpoint (pid, fd, flags, logfd); +} + +int sys_restart (unsigned long pid,unsigned long fd,unsigned long flags, +unsigned long logfd,unsigned long p5,unsigned long p6, +struct pt_regs *regs) +{ +CHECK_FULL_REGS (regs); + +return do_sys_restart (pid, fd, flags, logfd); +}
arch/powerpc/kernel/process.c +0 -18
@@ -979,24 +979,6 @@ out:return error; } -int sys_checkpoint (unsigned long pid,unsigned long fd,unsigned long flags, -unsigned long logfd,unsigned long p5,unsigned long p6, -struct pt_regs *regs) -{ -CHECK_FULL_REGS (regs); - -return do_sys_checkpoint (pid, fd, flags, logfd); -} - -int sys_restart (unsigned long pid,unsigned long fd,unsigned long flags, -unsigned long logfd,unsigned long p5,unsigned long p6, -struct pt_regs *regs) -{ -CHECK_FULL_REGS (regs); - -return do_sys_restart (pid, fd, flags, logfd); -} -#ifdef CONFIG_IRQSTACKS static inline int valid_irq_stack (unsigned long sp,struct task_struct *p,unsigned long nbytes)
Signature · 1 line
1.6.0.6
A message that is not in the archive (sent off-list or not yet received): 1268847440-26975-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org
Applied for ckpt-v21
Quoted 65 lines · Nathan Lynch
do_sys_checkpointanddo_sys_restartdon't exist when checkpoint is turned off, so move references to these to code which is built only whenCONFIG_CHECKPOINT=y.Signed-off-by Nathan Lynch <[email protected]>--- arch/powerpc/kernel/checkpoint.c | 18 ++++++++++++++++++ arch/powerpc/kernel/process.c | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-)arch/powerpc/kernel/checkpoint.c +18
-0@@ -531,3 +531,21 @@ int restore_mm_context(struct ckpt_ctx *ctx, struct mm_struct *mm) {return 0 ; } + +int sys_checkpoint (unsigned long pid,unsigned long fd,unsigned long flags, +unsigned long logfd,unsigned long p5,unsigned long p6, +struct pt_regs *regs) +{ +CHECK_FULL_REGS (regs); + +return do_sys_checkpoint (pid, fd, flags, logfd); +} + +int sys_restart (unsigned long pid,unsigned long fd,unsigned long flags, +unsigned long logfd,unsigned long p5,unsigned long p6, +struct pt_regs *regs) +{ +CHECK_FULL_REGS (regs); + +return do_sys_restart (pid, fd, flags, logfd); +}arch/powerpc/kernel/process.c +0
-18@@ -979,24 +979,6 @@ out:return error; } -int sys_checkpoint (unsigned long pid,unsigned long fd,unsigned long flags, -unsigned long logfd,unsigned long p5,unsigned long p6, -struct pt_regs *regs) -{ -CHECK_FULL_REGS (regs); - -return do_sys_checkpoint (pid, fd, flags, logfd); -} - -int sys_restart (unsigned long pid,unsigned long fd,unsigned long flags, -unsigned long logfd,unsigned long p5,unsigned long p6, -struct pt_regs *regs) -{ -CHECK_FULL_REGS (regs); - -return do_sys_restart (pid, fd, flags, logfd); -} -#ifdef CONFIG_IRQSTACKS static inline int valid_irq_stack (unsigned long sp,struct task_struct *p,unsigned long nbytes)