1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

fix 2.6.31 compile with union mounts disabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17730 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2009-09-26 08:52:09 +00:00
parent 2dee5f79dd
commit 82bbacf365
2 changed files with 13 additions and 2 deletions

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__ */