fix 2.6.31 compile with union mounts disabled

SVN-Revision: 17730
owl
Felix Fietkau 2009-09-26 08:52:09 +00:00
parent 25fadf0b07
commit 7cae3c4f8a
2 changed files with 13 additions and 2 deletions

View File

@ -4901,8 +4901,8 @@
+#define IS_MNT_UNION(x) (0) +#define IS_MNT_UNION(x) (0)
+#define is_unionized(x, y) (0) +#define is_unionized(x, y) (0)
+#define append_to_union(x1, y1, x2, y2) ({ BUG(); (0); }) +#define append_to_union(x1, y1, x2, y2) ({ BUG(); (0); })
+#define follow_union_down(x, y) ({ (0); }) +#define follow_union_down(x) ({ (0); })
+#define follow_union_mount(x, y) ({ (0); }) +#define follow_union_mount(x) ({ (0); })
+#define __d_drop_unions(x) do { } while (0) +#define __d_drop_unions(x) do { } while (0)
+#define shrink_d_unions(x) do { } while (0) +#define shrink_d_unions(x) do { } while (0)
+#define __shrink_d_unions(x,y) do { } while (0) +#define __shrink_d_unions(x,y) do { } while (0)

View File

@ -0,0 +1,11 @@
--- a/include/linux/union.h
+++ b/include/linux/union.h
@@ -77,7 +77,7 @@
#define __union_copyup(x, y, z) ({ BUG(); (0); })
#define union_copyup(x, y) ({ (0); })
#define union_copyup_dir(x) ({ BUG(); (0); })
-#define union_permission(x, y) inode_permission(x->dentry->d_inode, y)
+#define union_permission(x, y) inode_permission((x)->dentry->d_inode, y)
#endif /* CONFIG_UNION_MOUNT */
#endif /* __KERNEL__ */