[Devel] [PATCH 3/4] pipe_fs_i.h: add checkpoint-related declarations

Nathan Lynch ntl at pobox.com
Mon Jun 22 16:06:17 PDT 2009


pipe_fs_i.h apparently relies on ordering of includes in .c files to
get declarations of ckpt_ctx and ckpt_hdr_file for pipe_file_restore's
prototype.  This is bad.  Add appropriate forward declarations.

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 include/linux/pipe_fs_i.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
index b877598..fe45a85 100644
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
@@ -155,6 +155,8 @@ int generic_pipe_buf_steal(struct pipe_inode_info *, struct pipe_buffer *);
 
 /* checkpoint/restart */
 #ifdef CONFIG_CHECKPOINT
+struct ckpt_ctx;
+struct ckpt_hdr_file;
 extern struct file *pipe_file_restore(struct ckpt_ctx *ctx,
 				      struct ckpt_hdr_file *ptr);
 #endif
-- 
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