mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 03:14:50 +00:00
generic: fix yaffs compilation on 3.14
Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 42909
This commit is contained in:
parent
af58224462
commit
cc292d7de8
@ -80,7 +80,15 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
if (options.lazy_loading_overridden)
|
||||
--- a/fs/yaffs2/yaffs_mtdif.c
|
||||
+++ b/fs/yaffs2/yaffs_mtdif.c
|
||||
@@ -276,7 +276,8 @@ struct mtd_info * yaffs_get_mtd_device(d
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "yaffs_mtdif.h"
|
||||
|
||||
#include "linux/mtd/mtd.h"
|
||||
+#include "uapi/linux/major.h"
|
||||
#include "linux/types.h"
|
||||
#include "linux/time.h"
|
||||
#include "linux/mtd/nand.h"
|
||||
@@ -277,7 +277,8 @@ struct mtd_info * yaffs_get_mtd_device(d
|
||||
return mtd;
|
||||
}
|
||||
|
||||
@ -90,7 +98,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
{
|
||||
if (yaffs_version == 2) {
|
||||
if ((WRITE_SIZE(mtd) < YAFFS_MIN_YAFFS2_CHUNK_SIZE ||
|
||||
@@ -295,6 +296,12 @@ int yaffs_verify_mtd(struct mtd_info *mt
|
||||
@@ -296,6 +297,12 @@ int yaffs_verify_mtd(struct mtd_info *mt
|
||||
);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user