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>
This commit is contained in:
Matthias Schiffer 2018-06-06 00:30:57 +02:00
parent 8d851a95b7
commit 9968dcedb4
No known key found for this signature in database
GPG key ID: 16EF3F64CB201D9C

View file

@ -75,7 +75,7 @@ static unsigned long kernel_la;
#ifdef CONFIG_KERNEL_CMDLINE #ifdef CONFIG_KERNEL_CMDLINE
#define kernel_argc 2 #define kernel_argc 2
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE; static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
static const char *kernel_argv[] = { static const char *const kernel_argv[] = {
NULL, NULL,
kernel_cmdline, kernel_cmdline,
NULL, NULL,