[Devel] [PATCH 2/4] fs.h: fix header export breakage

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


# make headers_check
...
/home/nathanl/devel/linux-2.6.git/usr/include/linux/fs.h:11: included file 'linux/checkpoint_types.h' is not exported

This breaks building of any user space code which includes fs.h.

include/linux/checkpoint_types.h is not exported.
include/linux/fs.h is exported.

The latter #includes the former for the declaration of struct
ckpt_ctx, but this is not strictly necessary for correctness.
Forward-declaring struct ckpt_ctx and removing the include of
checkpoint_types.h is sufficient and fixes the breakage.

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

diff --git a/include/linux/fs.h b/include/linux/fs.h
index e64f892..18e462c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -8,7 +8,6 @@
 
 #include <linux/limits.h>
 #include <linux/ioctl.h>
-#include <linux/checkpoint_types.h>
 
 /*
  * It's silly to have NR_OPEN bigger than NR_FILE, but you can change
@@ -389,6 +388,7 @@ struct kstatfs;
 struct vm_area_struct;
 struct vfsmount;
 struct cred;
+struct ckpt_ctx;
 
 extern void __init inode_init(void);
 extern void __init inode_init_early(void);
-- 
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