kernel: update myloader for linux 4.9
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Tue, 30 May 2017 21:46:42 +0000 (00:46 +0300)
committerJohn Crispin <john@phrozen.org>
Wed, 7 Jun 2017 15:19:48 +0000 (17:19 +0200)
add backport patches for older kernels.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
target/linux/generic/files/drivers/mtd/myloader.c
target/linux/generic/patches-3.18/003-myloader_backport.patch [new file with mode: 0644]
target/linux/generic/patches-4.4/003-myloader_backport.patch [new file with mode: 0644]

index cd573690a7a83e3ae1511eaa6bd05d5d9c7f31b9..7532d454ede8a4c36e0d648b8c35216c0fb02f26 100644 (file)
@@ -33,7 +33,7 @@ struct part_data {
 };
 
 static int myloader_parse_partitions(struct mtd_info *master,
-                                    struct mtd_partition **pparts,
+                                    const struct mtd_partition **pparts,
                                     struct mtd_part_parser_data *data)
 {
        struct part_data *buf;
diff --git a/target/linux/generic/patches-3.18/003-myloader_backport.patch b/target/linux/generic/patches-3.18/003-myloader_backport.patch
new file mode 100644 (file)
index 0000000..846b25d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/mtd/myloader.c
++++ b/drivers/mtd/myloader.c
+@@ -33,7 +33,7 @@ struct part_data {
+ };
+ static int myloader_parse_partitions(struct mtd_info *master,
+-                                   const struct mtd_partition **pparts,
++                                   struct mtd_partition **pparts,
+                                    struct mtd_part_parser_data *data)
+ {
+       struct part_data *buf;
diff --git a/target/linux/generic/patches-4.4/003-myloader_backport.patch b/target/linux/generic/patches-4.4/003-myloader_backport.patch
new file mode 100644 (file)
index 0000000..846b25d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/mtd/myloader.c
++++ b/drivers/mtd/myloader.c
+@@ -33,7 +33,7 @@ struct part_data {
+ };
+ static int myloader_parse_partitions(struct mtd_info *master,
+-                                   const struct mtd_partition **pparts,
++                                   struct mtd_partition **pparts,
+                                    struct mtd_part_parser_data *data)
+ {
+       struct part_data *buf;