aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-14 11:32:48 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-14 11:32:48 +0000
commite4827485cb84e0dc23560f5b0efb532d9dc32d4e (patch)
tree675fab8108b58cbd8a0c88bbefcb711c9e2667cd
parent2663bdb0622e77aad8eb5186ab4ed169aff71dc4 (diff)
downloadmaster-187ad058-e4827485cb84e0dc23560f5b0efb532d9dc32d4e.tar.gz
master-187ad058-e4827485cb84e0dc23560f5b0efb532d9dc32d4e.tar.bz2
master-187ad058-e4827485cb84e0dc23560f5b0efb532d9dc32d4e.zip
generic: fix yaffs compilation on 3.14
Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42909 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic/patches-3.14/503-yaffs-add-tags-9bytes-mount-option.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/target/linux/generic/patches-3.14/503-yaffs-add-tags-9bytes-mount-option.patch b/target/linux/generic/patches-3.14/503-yaffs-add-tags-9bytes-mount-option.patch
index 5a15b516b5..88531a6a7b 100644
--- a/target/linux/generic/patches-3.14/503-yaffs-add-tags-9bytes-mount-option.patch
+++ b/target/linux/generic/patches-3.14/503-yaffs-add-tags-9bytes-mount-option.patch
@@ -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;
}