Re: [Yaffs] [PATCH] yaffs: Fix compilation on Linux 3.10

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Michael Bestas
Date:  
To: yaffs
Subject: Re: [Yaffs] [PATCH] yaffs: Fix compilation on Linux 3.10
Hi, anything holding this from being applied? I have tested it on 3.10
kernel on SEMC 2011 xperia devices (android) and works as expected.

On Tue, May 26, 2015 at 1:16 AM, Michael Bestas <>
wrote:

> Use the new procfs code for 3.10 too.
>
> Signed-off-by: Michael Bestas <>
> ---
> yaffs_vfs_multi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c
> index 6540434..0d4c666 100644
> --- a/yaffs_vfs_multi.c
> +++ b/yaffs_vfs_multi.c
> @@ -240,7 +240,7 @@ MODULE_PARM(yaffs_gc_control, "i");
> #define YAFFS_USE_DIR_ITERATE
> #endif
>
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10 ,0))
> #define YAFFS_NEW_PROCFS
> #include <linux/seq_file.h>
> #endif
> @@ -3507,7 +3507,7 @@ static int yaffs_proc_debug_write(struct file *file,
> const char *buf,
> }
>
>
> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0))
>  static int yaffs_proc_write(struct file *file, const char *buf,
>      unsigned long count, void *ppos)
>  #else
> --
> 1.9.1

>
>