Openwrt/target/linux/generic-2.6/patches-2.6.32/232-union_mounts_compile_fix.patch
Imre Kaloz 3d4466cfd8 add preliminary 2.6.32 support
SVN-Revision: 18283
2009-11-03 10:49:27 +00:00

12 lines
463 B
Diff

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