shm.h apparently relies on ordering of includes in .c files to get declarations of ckpt_ctx and ckpt_hdr_vma for ipcshm_restore's prototype. This is bad. Add appropriate forward declarations. Signed-off-by: Nathan Lynch <ntl@xxxxxxxxx> --- include/linux/shm.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/shm.h b/include/linux/shm.h index 6edc26e..94ac1a7 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -124,6 +124,8 @@ extern int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, #ifdef CONFIG_CHECKPOINT #ifdef CONFIG_SYSVIPC +struct ckpt_ctx; +struct ckpt_hdr_vma; extern int ipcshm_restore(struct ckpt_ctx *ctx, struct mm_struct *mm, struct ckpt_hdr_vma *h); #else -- 1.6.0.6 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers