Skip to content

Commit 87e1f9c

Browse files
alonblLinus Torvalds
authored andcommitted
[PATCH] Dynamic kernel command-line: cris
1. Rename saved_command_line into boot_command_line. 2. Set cris_command_line as __initdata. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Cc: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bf4352c commit 87e1f9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/cris/kernel/setup.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct screen_info screen_info;
2929
extern int root_mountflags;
3030
extern char _etext, _edata, _end;
3131

32-
char cris_command_line[COMMAND_LINE_SIZE] = { 0, };
32+
char __initdata cris_command_line[COMMAND_LINE_SIZE] = { 0, };
3333

3434
extern const unsigned long text_start, edata; /* set by the linker script */
3535
extern unsigned long dram_start, dram_end;
@@ -153,8 +153,8 @@ setup_arch(char **cmdline_p)
153153
#endif
154154

155155
/* Save command line for future references. */
156-
memcpy(saved_command_line, cris_command_line, COMMAND_LINE_SIZE);
157-
saved_command_line[COMMAND_LINE_SIZE - 1] = '\0';
156+
memcpy(boot_command_line, cris_command_line, COMMAND_LINE_SIZE);
157+
boot_command_line[COMMAND_LINE_SIZE - 1] = '\0';
158158

159159
/* give credit for the CRIS port */
160160
show_etrax_copyright();

0 commit comments

Comments
 (0)