kernel: fix some build warnings with kernel 2.6.36
[openwrt/openwrt.git] / target / linux / generic / patches-2.6.36 / 209-mini_fo.patch
index d7e3220d24d9c1bc3d280420149355a9d553f627..10900b4e188fa51b22c7acb8778e3695fe2f96be 100644 (file)
 +
 --- /dev/null
 +++ b/fs/mini_fo/super.c
-@@ -0,0 +1,281 @@
+@@ -0,0 +1,285 @@
 +/*
 + * Copyright (c) 1997-2003 Erez Zadok
 + * Copyright (c) 2001-2003 Stony Brook University
 +      struct dentry *hidden_d;
 +
 +      hidden_d = dtohd(d);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
++      err = statfs_by_dentry(hidden_d, buf);
++#else
 +      err = vfs_statfs(hidden_d, buf);
++#endif
 +#else
 +      super_block_t *hidden_sb;
 +