Linux Container Development
 help / color / mirror / Atom feed
* [PATCH 1/1] cr: sysvipc: don't break compilation with CONFIG_SYSVIPC=n
@ 2009-05-28 19:59 Serge E. Hallyn
       [not found] ` <20090528195923.GA24595-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2009-05-28 19:59 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Linux Containers

Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
 include/linux/checkpoint.h |    2 +-
 include/linux/shm.h        |    2 +-
 init/Kconfig               |    6 ++++++
 ipc/Makefile               |    2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h
index 0c03ac7..812a444 100644
--- a/include/linux/checkpoint.h
+++ b/include/linux/checkpoint.h
@@ -95,7 +95,7 @@ extern int restore_ipc_ns(struct ckpt_ctx *ctx, int ns_objref, int flags);
 static inline int checkpoint_ipc_ns(struct ckpt_ctx *ctx,
 				    struct ipc_namespace *ipc_ns)
 { return 0; }
-static inline int restore_ipc_ns(struct ckpt_ctx *ctx)
+static inline int restore_ipc_ns(struct ckpt_ctx *ctx, int ns_objref, int flags)
 { return 0; }
 #endif /* CONFIG_SYSVIPC */
 
diff --git a/include/linux/shm.h b/include/linux/shm.h
index 97972eb..6edc26e 100644
--- a/include/linux/shm.h
+++ b/include/linux/shm.h
@@ -127,7 +127,7 @@ extern int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd,
 extern int ipcshm_restore(struct ckpt_ctx *ctx, struct mm_struct *mm,
 			  struct ckpt_hdr_vma *h);
 #else
-define ipcshm_restart NULL
+#define ipcshm_restore NULL
 #endif
 #endif
 
diff --git a/init/Kconfig b/init/Kconfig
index adb4260..3befc07 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -186,6 +186,12 @@ config SYSVIPC
 	  section 6.4 of the Linux Programmer's Guide, available from
 	  <http://www.tldp.org/guides.html>.
 
+config SYSVIPC_CHECKPOINT
+	bool
+	depends on SYSVIPC
+	depends on CHECKPOINT
+	default y
+
 config SYSVIPC_SYSCTL
 	bool
 	depends on SYSVIPC
diff --git a/ipc/Makefile b/ipc/Makefile
index 81af168..6d4c92e 100644
--- a/ipc/Makefile
+++ b/ipc/Makefile
@@ -9,6 +9,6 @@ obj_mq-$(CONFIG_COMPAT) += compat_mq.o
 obj-$(CONFIG_POSIX_MQUEUE) += mqueue.o msgutil.o $(obj_mq-y)
 obj-$(CONFIG_IPC_NS) += namespace.o
 obj-$(CONFIG_POSIX_MQUEUE_SYSCTL) += mq_sysctl.o
-obj-$(CONFIG_CHECKPOINT) += checkpoint.o \
+obj-$(CONFIG_SYSVIPC_CHECKPOINT) += checkpoint.o \
 			checkpoint_shm.o checkpoint_msg.o checkpoint_sem.o
 
-- 
1.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] cr: sysvipc: don't break compilation with CONFIG_SYSVIPC=n
       [not found] ` <20090528195923.GA24595-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-05-29 10:20   ` Oren Laadan
  0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2009-05-29 10:20 UTC (permalink / raw)
  To: Serge E. Hallyn; +Cc: Linux Containers

Thanks.

Applied on ckpt-v16-dev.


Serge E. Hallyn wrote:
> Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
>  include/linux/checkpoint.h |    2 +-
>  include/linux/shm.h        |    2 +-
>  init/Kconfig               |    6 ++++++
>  ipc/Makefile               |    2 +-
>  4 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h
> index 0c03ac7..812a444 100644
> --- a/include/linux/checkpoint.h
> +++ b/include/linux/checkpoint.h
> @@ -95,7 +95,7 @@ extern int restore_ipc_ns(struct ckpt_ctx *ctx, int ns_objref, int flags);
>  static inline int checkpoint_ipc_ns(struct ckpt_ctx *ctx,
>  				    struct ipc_namespace *ipc_ns)
>  { return 0; }
> -static inline int restore_ipc_ns(struct ckpt_ctx *ctx)
> +static inline int restore_ipc_ns(struct ckpt_ctx *ctx, int ns_objref, int flags)
>  { return 0; }
>  #endif /* CONFIG_SYSVIPC */
>  
> diff --git a/include/linux/shm.h b/include/linux/shm.h
> index 97972eb..6edc26e 100644
> --- a/include/linux/shm.h
> +++ b/include/linux/shm.h
> @@ -127,7 +127,7 @@ extern int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd,
>  extern int ipcshm_restore(struct ckpt_ctx *ctx, struct mm_struct *mm,
>  			  struct ckpt_hdr_vma *h);
>  #else
> -define ipcshm_restart NULL
> +#define ipcshm_restore NULL
>  #endif
>  #endif
>  
> diff --git a/init/Kconfig b/init/Kconfig
> index adb4260..3befc07 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -186,6 +186,12 @@ config SYSVIPC
>  	  section 6.4 of the Linux Programmer's Guide, available from
>  	  <http://www.tldp.org/guides.html>.
>  
> +config SYSVIPC_CHECKPOINT
> +	bool
> +	depends on SYSVIPC
> +	depends on CHECKPOINT
> +	default y
> +
>  config SYSVIPC_SYSCTL
>  	bool
>  	depends on SYSVIPC
> diff --git a/ipc/Makefile b/ipc/Makefile
> index 81af168..6d4c92e 100644
> --- a/ipc/Makefile
> +++ b/ipc/Makefile
> @@ -9,6 +9,6 @@ obj_mq-$(CONFIG_COMPAT) += compat_mq.o
>  obj-$(CONFIG_POSIX_MQUEUE) += mqueue.o msgutil.o $(obj_mq-y)
>  obj-$(CONFIG_IPC_NS) += namespace.o
>  obj-$(CONFIG_POSIX_MQUEUE_SYSCTL) += mq_sysctl.o
> -obj-$(CONFIG_CHECKPOINT) += checkpoint.o \
> +obj-$(CONFIG_SYSVIPC_CHECKPOINT) += checkpoint.o \
>  			checkpoint_shm.o checkpoint_msg.o checkpoint_sem.o
>  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-29 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 19:59 [PATCH 1/1] cr: sysvipc: don't break compilation with CONFIG_SYSVIPC=n Serge E. Hallyn
     [not found] ` <20090528195923.GA24595-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-05-29 10:20   ` Oren Laadan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox