From 12762cf777ba0b49bdc1c549db1468cfa6a3a6d2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Sep 2009 08:52:09 +0000 Subject: fix 2.6.31 compile with union mounts disabled git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17730 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.31/232-union_mounts_compile_fix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch (limited to 'target/linux/generic-2.6/patches-2.6.31/232-union_mounts_compile_fix.patch') 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__ */ -- cgit v1.2.3