summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-11-03 10:49:27 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-11-03 10:49:27 +0000
commit3d4466cfd8f75f717efdb1f96fdde3c70d865fc1 (patch)
treee0d2b76bad5b0289f4a3ab013ad698dcc284e1c5 /target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch
parentab81d139c7675244c704ef5cad4407dbbae8c351 (diff)
downloadmaster-31e0f0ae-3d4466cfd8f75f717efdb1f96fdde3c70d865fc1.tar.gz
master-31e0f0ae-3d4466cfd8f75f717efdb1f96fdde3c70d865fc1.tar.bz2
master-31e0f0ae-3d4466cfd8f75f717efdb1f96fdde3c70d865fc1.zip
add preliminary 2.6.32 support
SVN-Revision: 18283
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch b/target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch
new file mode 100644
index 0000000000..b20b845aad
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch
@@ -0,0 +1,11 @@
+--- a/include/linux/union.h
++++ b/include/linux/union.h
+@@ -77,7 +77,7 @@ extern int union_permission(struct path
+ #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__ */