1 --- a/fs/yaffs2/yaffs_vfs_glue.c
2 +++ b/fs/yaffs2/yaffs_vfs_glue.c
3 @@ -274,8 +274,13 @@ static int yaffs_sync_object(struct file
4 static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir);
6 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
8 +static int yaffs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
9 + struct nameidata *n);
11 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode,
14 static struct dentry *yaffs_lookup(struct inode *dir, struct dentry *dentry,
17 @@ -287,9 +292,17 @@ static int yaffs_link(struct dentry *old
18 static int yaffs_unlink(struct inode *dir, struct dentry *dentry);
19 static int yaffs_symlink(struct inode *dir, struct dentry *dentry,
22 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
23 +static int yaffs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
25 static int yaffs_mkdir(struct inode *dir, struct dentry *dentry, int mode);
28 -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
29 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
30 +static int yaffs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
32 +#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
33 static int yaffs_mknod(struct inode *dir, struct dentry *dentry, int mode,
36 @@ -1708,7 +1721,10 @@ out:
37 #define YCRED(x) (x->cred)
40 -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
41 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
42 +static int yaffs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
44 +#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
45 static int yaffs_mknod(struct inode *dir, struct dentry *dentry, int mode,
48 @@ -1798,7 +1814,11 @@ static int yaffs_mknod(struct inode *dir
52 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
53 +static int yaffs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
55 static int yaffs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
59 T(YAFFS_TRACE_OS, (TSTR("yaffs_mkdir\n")));
60 @@ -1806,7 +1826,10 @@ static int yaffs_mkdir(struct inode *dir
64 -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
65 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0))
66 +static int yaffs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
67 + struct nameidata *n)
68 +#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2, 5, 0))
69 static int yaffs_create(struct inode *dir, struct dentry *dentry, int mode,