[openwrt/openwrt] ar7: fix ac49x compilation with 4.9

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 12 02:46:04 PST 2018


jogo pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/09bc44454f0b26d9f1a5fee991ed309ef10e81f6

commit 09bc44454f0b26d9f1a5fee991ed309ef10e81f6
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Mon Feb 12 11:40:38 2018 +0100

    ar7: fix ac49x compilation with 4.9
    
    This will introduce a warning on 3.18, but fixes an error when
    compiling for 4.9.
    
    Fixes: cf9e0a59aabd ("ar7: add kernel 4.9 support")
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 target/linux/ar7/files/drivers/mtd/ac49xpart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar7/files/drivers/mtd/ac49xpart.c b/target/linux/ar7/files/drivers/mtd/ac49xpart.c
index 7ac4a81..4f8a9c1 100644
--- a/target/linux/ar7/files/drivers/mtd/ac49xpart.c
+++ b/target/linux/ar7/files/drivers/mtd/ac49xpart.c
@@ -123,7 +123,7 @@ void gen_partname(unsigned int type,
 }
 
 static int create_mtd_partitions(struct mtd_info *master,
-				 struct mtd_partition **pparts,
+				 const struct mtd_partition **pparts,
 				 struct mtd_part_parser_data *data)
 {
 	unsigned int envpartnum = 0, linuxpartnum = 0;



More information about the lede-commits mailing list