2017-02-01 07:06:10 +00:00
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_brnimage.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_brnimage.c
|
|
|
|
@@ -27,7 +27,7 @@
|
|
|
|
#define BRNIMAGE_MAX_OVERHEAD (BRNIMAGE_ALIGN_BYTES + BRNIMAGE_FOOTER_SIZE)
|
|
|
|
|
|
|
|
static int mtdsplit_parse_brnimage(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct mtd_partition *parts;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_eva.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_eva.c
|
|
|
|
@@ -29,7 +29,7 @@ struct eva_image_header {
|
|
|
|
};
|
|
|
|
|
|
|
|
static int mtdsplit_parse_eva(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct mtd_partition *parts;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_fit.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_fit.c
|
|
|
|
@@ -45,8 +45,7 @@ struct fdt_header {
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
|
|
|
-mtdsplit_fit_parse(struct mtd_info *mtd,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+mtdsplit_fit_parse(struct mtd_info *mtd, struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct fdt_header hdr;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_lzma.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_lzma.c
|
|
|
|
@@ -28,7 +28,7 @@ struct lzma_header {
|
|
|
|
};
|
|
|
|
|
|
|
|
static int mtdsplit_parse_lzma(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct lzma_header hdr;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_seama.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_seama.c
|
|
|
|
@@ -30,7 +30,7 @@ struct seama_header {
|
|
|
|
};
|
|
|
|
|
|
|
|
static int mtdsplit_parse_seama(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct seama_header hdr;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_squashfs.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_squashfs.c
|
|
|
|
@@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
static int
|
|
|
|
mtdsplit_parse_squashfs(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct mtd_partition *part;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_tplink.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_tplink.c
|
2018-12-18 11:52:57 +00:00
|
|
|
@@ -83,8 +83,8 @@ struct tplink_fw_header {
|
2017-02-01 07:06:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int mtdsplit_parse_tplink(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
- struct mtd_part_parser_data *data)
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct tplink_fw_header hdr;
|
|
|
|
size_t hdr_len, retlen, kernel_size;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_trx.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_trx.c
|
|
|
|
@@ -56,7 +56,7 @@ read_trx_header(struct mtd_info *mtd, si
|
|
|
|
|
|
|
|
static int
|
|
|
|
mtdsplit_parse_trx(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct mtd_partition *parts;
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_uimage.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_uimage.c
|
2018-11-28 10:01:46 +00:00
|
|
|
@@ -82,7 +82,7 @@ read_uimage_header(struct mtd_info *mtd,
|
2017-02-01 07:06:10 +00:00
|
|
|
* of a valid uImage header if found
|
|
|
|
*/
|
|
|
|
static int __mtdsplit_parse_uimage(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data,
|
|
|
|
ssize_t (*find_header)(u_char *buf, size_t len))
|
|
|
|
{
|
2018-11-28 10:01:46 +00:00
|
|
|
@@ -233,7 +233,7 @@ static ssize_t uimage_verify_default(u_c
|
2017-02-01 07:06:10 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
mtdsplit_uimage_parse_generic(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
return __mtdsplit_parse_uimage(master, pparts, data,
|
2018-11-28 10:01:46 +00:00
|
|
|
@@ -300,7 +300,7 @@ static ssize_t uimage_verify_wndr3700(u_
|
2017-02-01 07:06:10 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
mtdsplit_uimage_parse_netgear(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
return __mtdsplit_parse_uimage(master, pparts, data,
|
2018-11-28 10:01:46 +00:00
|
|
|
@@ -352,7 +352,7 @@ static ssize_t uimage_find_edimax(u_char
|
2017-02-01 07:06:10 +00:00
|
|
|
|
|
|
|
static int
|
|
|
|
mtdsplit_uimage_parse_edimax(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
return __mtdsplit_parse_uimage(master, pparts, data,
|
|
|
|
--- a/drivers/mtd/mtdsplit/mtdsplit_wrgg.c
|
|
|
|
+++ b/drivers/mtd/mtdsplit/mtdsplit_wrgg.c
|
2018-08-20 08:43:09 +00:00
|
|
|
@@ -51,8 +51,8 @@ struct wrg_header {
|
2017-02-01 07:06:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
static int mtdsplit_parse_wrgg(struct mtd_info *master,
|
|
|
|
- const struct mtd_partition **pparts,
|
|
|
|
- struct mtd_part_parser_data *data)
|
|
|
|
+ struct mtd_partition **pparts,
|
|
|
|
+ struct mtd_part_parser_data *data)
|
|
|
|
{
|
|
|
|
struct wrgg03_header hdr;
|
|
|
|
size_t hdr_len, retlen, kernel_ent_size;
|