[Devel] [PATCH] checkpoint/powerpc: fix build break with CONFIG_CHECKPOINT=n
Nathan Lynch
ntl at pobox.com
Wed Mar 17 10:37:20 PDT 2010
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 <ntl at pobox.com>
---
arch/powerpc/kernel/checkpoint.c | 18 ++++++++++++++++++
arch/powerpc/kernel/process.c | 18 ------------------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/arch/powerpc/kernel/checkpoint.c b/arch/powerpc/kernel/checkpoint.c
index 2634011..c73acda 100644
--- a/arch/powerpc/kernel/checkpoint.c
+++ b/arch/powerpc/kernel/checkpoint.c
@@ -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);
+}
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 6457530..0aafbf1 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -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)
--
1.6.0.6
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list