[Yaffs] [PATCH] fix yaffs compilation on 2.6.28

Top Page
Attachments:
Message as email
+ (text/plain)
+ yaffs.patch (application/octet-stream)
Delete this message
Reply to this message
Author: Vitaly Wool
Date:  
To: yaffs
Subject: [Yaffs] [PATCH] fix yaffs compilation on 2.6.28
Hello guys,

as of now, yaffs2 fails to compile with 2.6.28 kernel:

    CC      fs/yaffs2/yaffs_fs.o
/vital/linux-2.6.28-rmi/fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink':
/vital/linux-2.6.28-rmi/fs/yaffs2/yaffs_fs.c:1393: error: 'struct
task_struct' has no member named 'fsuid'
/vital/linux-2.6.28-rmi/fs/yaffs2/yaffs_fs.c:1394: error: 'struct
task_struct' has no member named 'fsgid'
    ...


The problem is in inaccurate usage of KERNEL_VERSION macro, e. g. the
starting version of the 'struct cred' introduction is considered to be
2.6.29 and not 2.6.28.

The patch attached fixes the breakage.