[kernel] update to 2.6.31.5
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.31 / 232-union_mounts_compile_fix.patch
1 --- a/include/linux/union.h
2 +++ b/include/linux/union.h
3 @@ -77,7 +77,7 @@ extern int union_permission(struct path 
4  #define __union_copyup(x, y, z)                ({ BUG(); (0); })
5  #define union_copyup(x, y)             ({ (0); })
6  #define union_copyup_dir(x)            ({ BUG(); (0); })
7 -#define union_permission(x, y)         inode_permission(x->dentry->d_inode, y)
8 +#define union_permission(x, y)         inode_permission((x)->dentry->d_inode, y)
9  
10  #endif /* CONFIG_UNION_MOUNT */
11  #endif /* __KERNEL__ */