Browse Source

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 <[email protected]>
Matthias Schiffer 7 years ago
parent
commit
9968dcedb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/ar71xx/image/lzma-loader/src/loader.c

+ 1 - 1
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,