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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux