aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-06-06 00:30:57 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-06-06 22:25:52 +0200
commit9968dcedb420c19b7639e7f626f1d47f70734d9b (patch)
tree59de43f931d76bb3c072d2da3feb5bc996879446 /target/linux/ar71xx/image
parent8d851a95b7f581a844160b892e0e52b9bb5b9a68 (diff)
downloadupstream-9968dcedb420c19b7639e7f626f1d47f70734d9b.tar.gz
upstream-9968dcedb420c19b7639e7f626f1d47f70734d9b.tar.bz2
upstream-9968dcedb420c19b7639e7f626f1d47f70734d9b.zip
ar71xx: lzma-loader: constify kernel argv array
By making the kernel argv array const, the .data section can always be omitted from the laoder binary. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r--target/linux/ar71xx/image/lzma-loader/src/loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/image/lzma-loader/src/loader.c b/target/linux/ar71xx/image/lzma-loader/src/loader.c
index cc73eb1721..794c4b6285 100644
--- a/target/linux/ar71xx/image/lzma-loader/src/loader.c
+++ b/target/linux/ar71xx/image/lzma-loader/src/loader.c
@@ -75,7 +75,7 @@ static unsigned long kernel_la;
#ifdef CONFIG_KERNEL_CMDLINE
#define kernel_argc 2
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
-static const char *kernel_argv[] = {
+static const char *const kernel_argv[] = {
NULL,
kernel_cmdline,
NULL,