[source] kernel: update myloader for linux 4.9

LEDE Commits lede-commits at lists.infradead.org
Wed Jun 7 08:19:57 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/00639586fd7892de41fa786bb48aaec4ed4b6e6a

commit 00639586fd7892de41fa786bb48aaec4ed4b6e6a
Author: Sergey Ryazanov <ryazanov.s.a at gmail.com>
AuthorDate: Wed May 31 00:46:42 2017 +0300

    kernel: update myloader for linux 4.9
    
    add backport patches for older kernels.
    
    Signed-off-by: Sergey Ryazanov <ryazanov.s.a at gmail.com>
---
 target/linux/generic/files/drivers/mtd/myloader.c             |  2 +-
 target/linux/generic/patches-3.18/003-myloader_backport.patch | 11 +++++++++++
 target/linux/generic/patches-4.4/003-myloader_backport.patch  | 11 +++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/target/linux/generic/files/drivers/mtd/myloader.c b/target/linux/generic/files/drivers/mtd/myloader.c
index cd57369..7532d45 100644
--- a/target/linux/generic/files/drivers/mtd/myloader.c
+++ b/target/linux/generic/files/drivers/mtd/myloader.c
@@ -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
index 0000000..846b25d
--- /dev/null
+++ b/target/linux/generic/patches-3.18/003-myloader_backport.patch
@@ -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
index 0000000..846b25d
--- /dev/null
+++ b/target/linux/generic/patches-4.4/003-myloader_backport.patch
@@ -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;



More information about the lede-commits mailing list