aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-26 08:52:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-26 08:52:09 +0000
commit12762cf777ba0b49bdc1c549db1468cfa6a3a6d2 (patch)
treef61906f06561a4254c8d11ab2f15726700c71fa8
parent12bda702b9f4c05da77109747e487f8ea5613f83 (diff)
downloadupstream-12762cf777ba0b49bdc1c549db1468cfa6a3a6d2.tar.gz
upstream-12762cf777ba0b49bdc1c549db1468cfa6a3a6d2.tar.bz2
upstream-12762cf777ba0b49bdc1c549db1468cfa6a3a6d2.zip
fix 2.6.31 compile with union mounts disabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17730 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic-2.6/patches-2.6.31/230-union_mounts.patch4
-rw-r--r--target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch11
2 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.31/230-union_mounts.patch b/target/linux/generic-2.6/patches-2.6.31/230-union_mounts.patch
index d1b6b93e32..836742295a 100644
--- a/target/linux/generic-2.6/patches-2.6.31/230-union_mounts.patch
+++ b/target/linux/generic-2.6/patches-2.6.31/230-union_mounts.patch
@@ -4901,8 +4901,8 @@
+#define IS_MNT_UNION(x) (0)
+#define is_unionized(x, y) (0)
+#define append_to_union(x1, y1, x2, y2) ({ BUG(); (0); })
-+#define follow_union_down(x, y) ({ (0); })
-+#define follow_union_mount(x, y) ({ (0); })
++#define follow_union_down(x) ({ (0); })
++#define follow_union_mount(x) ({ (0); })
+#define __d_drop_unions(x) do { } while (0)
+#define shrink_d_unions(x) do { } while (0)
+#define __shrink_d_unions(x,y) do { } while (0)
diff --git a/target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch b/target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch
new file mode 100644
index 0000000000..bf922a3b8d
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch
@@ -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__ */