kernel: fix compiler warning in mtdsplit_minor.c under 4.4
[openwrt/openwrt.git] / target / linux / generic / pending-4.4 / 001-mtdsplit_backport.patch
1 --- a/drivers/mtd/mtdsplit/mtdsplit_brnimage.c
2 +++ b/drivers/mtd/mtdsplit/mtdsplit_brnimage.c
3 @@ -27,7 +27,7 @@
4 #define BRNIMAGE_MAX_OVERHEAD (BRNIMAGE_ALIGN_BYTES + BRNIMAGE_FOOTER_SIZE)
5
6 static int mtdsplit_parse_brnimage(struct mtd_info *master,
7 - const struct mtd_partition **pparts,
8 + struct mtd_partition **pparts,
9 struct mtd_part_parser_data *data)
10 {
11 struct mtd_partition *parts;
12 --- a/drivers/mtd/mtdsplit/mtdsplit_eva.c
13 +++ b/drivers/mtd/mtdsplit/mtdsplit_eva.c
14 @@ -29,7 +29,7 @@ struct eva_image_header {
15 };
16
17 static int mtdsplit_parse_eva(struct mtd_info *master,
18 - const struct mtd_partition **pparts,
19 + struct mtd_partition **pparts,
20 struct mtd_part_parser_data *data)
21 {
22 struct mtd_partition *parts;
23 --- a/drivers/mtd/mtdsplit/mtdsplit_fit.c
24 +++ b/drivers/mtd/mtdsplit/mtdsplit_fit.c
25 @@ -45,8 +45,7 @@ struct fdt_header {
26 };
27
28 static int
29 -mtdsplit_fit_parse(struct mtd_info *mtd,
30 - const struct mtd_partition **pparts,
31 +mtdsplit_fit_parse(struct mtd_info *mtd, struct mtd_partition **pparts,
32 struct mtd_part_parser_data *data)
33 {
34 struct fdt_header hdr;
35 --- a/drivers/mtd/mtdsplit/mtdsplit_lzma.c
36 +++ b/drivers/mtd/mtdsplit/mtdsplit_lzma.c
37 @@ -28,7 +28,7 @@ struct lzma_header {
38 };
39
40 static int mtdsplit_parse_lzma(struct mtd_info *master,
41 - const struct mtd_partition **pparts,
42 + struct mtd_partition **pparts,
43 struct mtd_part_parser_data *data)
44 {
45 struct lzma_header hdr;
46 --- a/drivers/mtd/mtdsplit/mtdsplit_seama.c
47 +++ b/drivers/mtd/mtdsplit/mtdsplit_seama.c
48 @@ -30,7 +30,7 @@ struct seama_header {
49 };
50
51 static int mtdsplit_parse_seama(struct mtd_info *master,
52 - const struct mtd_partition **pparts,
53 + struct mtd_partition **pparts,
54 struct mtd_part_parser_data *data)
55 {
56 struct seama_header hdr;
57 --- a/drivers/mtd/mtdsplit/mtdsplit_squashfs.c
58 +++ b/drivers/mtd/mtdsplit/mtdsplit_squashfs.c
59 @@ -23,7 +23,7 @@
60
61 static int
62 mtdsplit_parse_squashfs(struct mtd_info *master,
63 - const struct mtd_partition **pparts,
64 + struct mtd_partition **pparts,
65 struct mtd_part_parser_data *data)
66 {
67 struct mtd_partition *part;
68 --- a/drivers/mtd/mtdsplit/mtdsplit_tplink.c
69 +++ b/drivers/mtd/mtdsplit/mtdsplit_tplink.c
70 @@ -83,8 +83,8 @@ struct tplink_fw_header {
71 };
72
73 static int mtdsplit_parse_tplink(struct mtd_info *master,
74 - const struct mtd_partition **pparts,
75 - struct mtd_part_parser_data *data)
76 + struct mtd_partition **pparts,
77 + struct mtd_part_parser_data *data)
78 {
79 struct tplink_fw_header hdr;
80 size_t hdr_len, retlen, kernel_size;
81 --- a/drivers/mtd/mtdsplit/mtdsplit_trx.c
82 +++ b/drivers/mtd/mtdsplit/mtdsplit_trx.c
83 @@ -56,7 +56,7 @@ read_trx_header(struct mtd_info *mtd, si
84
85 static int
86 mtdsplit_parse_trx(struct mtd_info *master,
87 - const struct mtd_partition **pparts,
88 + struct mtd_partition **pparts,
89 struct mtd_part_parser_data *data)
90 {
91 struct mtd_partition *parts;
92 --- a/drivers/mtd/mtdsplit/mtdsplit_uimage.c
93 +++ b/drivers/mtd/mtdsplit/mtdsplit_uimage.c
94 @@ -81,7 +81,7 @@ read_uimage_header(struct mtd_info *mtd,
95 * of a valid uImage header if found
96 */
97 static int __mtdsplit_parse_uimage(struct mtd_info *master,
98 - const struct mtd_partition **pparts,
99 + struct mtd_partition **pparts,
100 struct mtd_part_parser_data *data,
101 ssize_t (*find_header)(u_char *buf, size_t len))
102 {
103 @@ -232,7 +232,7 @@ static ssize_t uimage_verify_default(u_c
104
105 static int
106 mtdsplit_uimage_parse_generic(struct mtd_info *master,
107 - const struct mtd_partition **pparts,
108 + struct mtd_partition **pparts,
109 struct mtd_part_parser_data *data)
110 {
111 return __mtdsplit_parse_uimage(master, pparts, data,
112 @@ -289,7 +289,7 @@ static ssize_t uimage_verify_wndr3700(u_
113
114 static int
115 mtdsplit_uimage_parse_netgear(struct mtd_info *master,
116 - const struct mtd_partition **pparts,
117 + struct mtd_partition **pparts,
118 struct mtd_part_parser_data *data)
119 {
120 return __mtdsplit_parse_uimage(master, pparts, data,
121 @@ -331,7 +331,7 @@ static ssize_t uimage_find_edimax(u_char
122
123 static int
124 mtdsplit_uimage_parse_edimax(struct mtd_info *master,
125 - const struct mtd_partition **pparts,
126 + struct mtd_partition **pparts,
127 struct mtd_part_parser_data *data)
128 {
129 return __mtdsplit_parse_uimage(master, pparts, data,
130 --- a/drivers/mtd/mtdsplit/mtdsplit_wrgg.c
131 +++ b/drivers/mtd/mtdsplit/mtdsplit_wrgg.c
132 @@ -40,8 +40,8 @@ struct wrgg03_header {
133
134
135 static int mtdsplit_parse_wrgg(struct mtd_info *master,
136 - const struct mtd_partition **pparts,
137 - struct mtd_part_parser_data *data)
138 + struct mtd_partition **pparts,
139 + struct mtd_part_parser_data *data)
140 {
141 struct wrgg03_header hdr;
142 size_t hdr_len, retlen, kernel_ent_size;
143 --- a/drivers/mtd/mtdsplit/mtdsplit_minor.c
144 +++ b/drivers/mtd/mtdsplit/mtdsplit_minor.c
145 @@ -49,7 +49,7 @@ struct minor_header {
146 };
147
148 static int mtdsplit_parse_minor(struct mtd_info *master,
149 - const struct mtd_partition **pparts,
150 + struct mtd_partition **pparts,
151 struct mtd_part_parser_data *data)
152 {
153 struct minor_header hdr;