[Devel] [PATCH] Fix build break when CONFIG_CHECKPOINT=n
Dan Smith
danms at us.ibm.com
Thu Sep 23 09:48:04 PDT 2010
This was introduced in my sem_undo patch. Oops.
Signed-off-by: Dan Smith <danms at us.ibm.com>
---
ipc/sem.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ipc/sem.c b/ipc/sem.c
index 9e3e463..2e54c21 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1478,6 +1478,7 @@ static int sysvipc_sem_proc_show(struct seq_file *s, void *it)
}
#endif
+#ifdef CONFIG_CHECKPOINT
static int __get_semids(struct sem_undo_list *ulp, int *semids, int max)
{
int count = 0;
@@ -1786,6 +1787,7 @@ static const struct ckpt_obj_ops ckpt_obj_sem_undo_ops = {
.checkpoint = checkpoint_sem_undo,
.restore = restore_sem_undo,
};
+#endif
void __init sem_init (void)
{
@@ -1794,9 +1796,11 @@ void __init sem_init (void)
" key semid perms nsems uid gid cuid cgid otime ctime\n",
IPC_SEM_IDS, sysvipc_sem_proc_show);
+#ifdef CONFIG_CHECKPOINT
/* sem_undo_list uses a short but we write a __s16 */
CKPT_BUILD_BUG_ON_MISMATCH(*CKPT_STRUCT_MEMBER(sem_undo, semadj),
__s16);
register_checkpoint_obj(&ckpt_obj_sem_undo_ops);
+#endif
}
--
1.7.2.2
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list