From: Nathan Lynch Subject: [PATCH 3/4] pipe_fs_i.h: add checkpoint-related declarations Date: Mon, 22 Jun 2009 18:06:17 -0500 Message-ID: <1245711978-1453-4-git-send-email-ntl@pobox.com> References: <1245711978-1453-1-git-send-email-ntl@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1245711978-1453-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org 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 --- 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