mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
MIPS: Replace all usages of CL_SIZE by COMMAND_LINE_SIZE
The MIPS-specific macro CL_SIZE is merely aliasing the macro COMMAND_LINE_SIZE. Other architectures use the latter; also, COMMAND_LINE_SIZE is documented in kernel-parameters.txt, so let's use it, and remove the alias. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
cb6edd45f0
commit
7580c9c393
8 changed files with 17 additions and 19 deletions
|
@ -287,7 +287,7 @@ void __init prom_init(void)
|
|||
* boot console
|
||||
*/
|
||||
cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE);
|
||||
if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) {
|
||||
if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, COMMAND_LINE_SIZE) < 0) {
|
||||
if (argc >= 0) {
|
||||
/* The loader should have set the command line */
|
||||
/* too early for panic to do any good */
|
||||
|
@ -318,7 +318,7 @@ void __init prom_init(void)
|
|||
#endif /* CONFIG_BLK_DEV_INITRD */
|
||||
|
||||
/* Not sure this is needed, but it's the safe way. */
|
||||
arcs_cmdline[CL_SIZE-1] = 0;
|
||||
arcs_cmdline[COMMAND_LINE_SIZE-1] = 0;
|
||||
|
||||
prom_meminit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue