cr: sysvipc: don't break compilation with CONFIG_SYSVIPC=n
PATCH 1/1 cr: sysvipc: don't break compilation with CONFIG_SYSVIPC=n
Signed-off-by Serge E. Hallyn <serue-r/[email protected]>
--- include/linux/checkpoint.h | 2 +- include/linux/shm.h | 2 +- init/Kconfig | 6 ++++++ ipc/Makefile | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-)
include/linux/checkpoint.h +1 -1
@@ -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 */
include/linux/shm.h +1 -1
@@ -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
init/Kconfig +6 -0
@@ -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
ipc/Makefile +1 -1
@@ -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
Signature · 1 line
1.6.1
A message that is not in the archive (sent off-list or not yet received): 20090528195923.GA24595-r/[email protected]
Thanks.
Applied on ckpt-v16-dev.
Quoted 63 lines · Serge E. Hallyn
Signed-off-by Serge E. Hallyn <serue-r/[email protected]>--- include/linux/checkpoint.h | 2 +- include/linux/shm.h | 2 +- init/Kconfig | 6 ++++++ ipc/Makefile | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-)include/linux/checkpoint.h +1
-1@@ -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 */ include/linux/shm.h +1
-1@@ -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 init/Kconfig +6
-0@@ -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 SYSVIPCipc/Makefile +1
-1@@ -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