diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-14 10:19:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-14 10:19:10 +0000 |
commit | 80dab3e93d586ecfc2b449e2424efa1dfe0df2ca (patch) | |
tree | 6352188af61e8a15ee755fea7e8f93e9818b8880 /target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch | |
parent | 9c2201ca15ecb90f3955b64e4e4f0fbd89ca9c0b (diff) | |
download | master-187ad058-80dab3e93d586ecfc2b449e2424efa1dfe0df2ca.tar.gz master-187ad058-80dab3e93d586ecfc2b449e2424efa1dfe0df2ca.tar.bz2 master-187ad058-80dab3e93d586ecfc2b449e2424efa1dfe0df2ca.zip |
generic/3.10: remove unused defines from the rootfs split patch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37981 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch')
-rw-r--r-- | target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch b/target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch index d2330ccf8c..f6ef8c7a6e 100644 --- a/target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch +++ b/target/linux/generic/patches-3.10/400-mtd-add-rootfs-split-support.patch @@ -35,7 +35,7 @@ #include <linux/err.h> #include "mtdcore.h" -@@ -45,12 +47,14 @@ struct mtd_part { +@@ -45,13 +47,14 @@ struct mtd_part { struct list_head list; }; @@ -46,12 +46,12 @@ * the pointer to that structure with this macro. */ #define PART(x) ((struct mtd_part *)(x)) -- -+#define IS_PART(mtd) (mtd->_read == part_read) +- /* * MTD methods which simply translate the effective address and pass through -@@ -533,8 +537,10 @@ out_register: + * to the _real_ device. +@@ -533,8 +536,10 @@ out_register: return slave; } @@ -64,7 +64,7 @@ { struct mtd_partition part; struct mtd_part *p, *new; -@@ -566,21 +572,24 @@ int mtd_add_partition(struct mtd_info *m +@@ -566,21 +571,24 @@ int mtd_add_partition(struct mtd_info *m end = offset + length; mutex_lock(&mtd_partitions_mutex); @@ -99,7 +99,7 @@ return ret; err_inv: -@@ -590,6 +599,12 @@ err_inv: +@@ -590,6 +598,12 @@ err_inv: } EXPORT_SYMBOL_GPL(mtd_add_partition); @@ -112,7 +112,7 @@ int mtd_del_partition(struct mtd_info *master, int partno) { struct mtd_part *slave, *next; -@@ -613,6 +628,149 @@ int mtd_del_partition(struct mtd_info *m +@@ -613,6 +627,148 @@ int mtd_del_partition(struct mtd_info *m } EXPORT_SYMBOL_GPL(mtd_del_partition); @@ -128,7 +128,6 @@ +} + +#define ROOTFS_SPLIT_NAME "rootfs_data" -+#define ROOTFS_REMOVED_NAME "<removed>" + +struct squashfs_super_block { + __le32 s_magic; @@ -262,7 +261,7 @@ /* * This function, given a master MTD object and a partition table, creates * and registers slave MTD objects which are bound to the master according to -@@ -642,6 +800,7 @@ int add_mtd_partitions(struct mtd_info * +@@ -642,6 +798,7 @@ int add_mtd_partitions(struct mtd_info * mutex_unlock(&mtd_partitions_mutex); add_mtd_device(&slave->mtd); |