SOURCES: shfs-shfs_get_sb.patch (NEW) - fix build on kernels >= 2....
adamg
adamg at pld-linux.org
Sun Dec 10 13:07:18 CET 2006
Author: adamg Date: Sun Dec 10 12:07:18 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix build on kernels >= 2.6.18
---- Files affected:
SOURCES:
shfs-shfs_get_sb.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/shfs-shfs_get_sb.patch
diff -u /dev/null SOURCES/shfs-shfs_get_sb.patch:1.1
--- /dev/null Sun Dec 10 13:07:18 2006
+++ SOURCES/shfs-shfs_get_sb.patch Sun Dec 10 13:07:13 2006
@@ -0,0 +1,25 @@
+--- shfs-0.35/shfs/Linux-2.6/inode.c.orig 2006-12-10 12:47:30.000000000 +0100
++++ shfs-0.35/shfs/Linux-2.6/inode.c 2006-12-10 12:57:35.000000000 +0100
+@@ -341,12 +341,22 @@
+ return -EINVAL;
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
+ static struct super_block *
+ shfs_get_sb(struct file_system_type *fs_type,
+ int flags, const char *dev_name, void *data)
+ {
+ return get_sb_nodev(fs_type, flags, data, shfs_read_super);
+ }
++#else
++static struct super_block *
++shfs_get_sb(struct file_system_type *fs_type,
++ int flags, const char *dev_name, void *data,
++ struct vfsmount *mnt)
++{
++ return get_sb_nodev(fs_type, flags, data, shfs_read_super, mnt);
++}
++#endif
+
+ static struct file_system_type sh_fs_type = {
+ .owner = THIS_MODULE,
================================================================
More information about the pld-cvs-commit
mailing list