MIPS: arc: use function argument for passing argc/argv to prom_init_cmdline
prom_argc and prom_argv are only used by prom_init_cmdline(), so we could pass them directly as function argument. Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Burton <paul.burton@mips.com> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
This commit is contained in:

committed by
Paul Burton

parent
cbd09241dd
commit
7b16831d1e
@@ -15,13 +15,6 @@
|
||||
#include <asm/sgiarcs.h>
|
||||
|
||||
extern struct linux_romvec *romvec;
|
||||
extern int prom_argc;
|
||||
|
||||
extern LONG *_prom_argv;
|
||||
|
||||
/* A 32-bit ARC PROM pass arguments and environment as 32-bit pointer.
|
||||
These macros take care of sign extension. */
|
||||
#define prom_argv(index) ((char *) (long) _prom_argv[(index)])
|
||||
|
||||
extern int prom_flags;
|
||||
|
||||
@@ -55,7 +48,7 @@ extern void prom_identify_arch(void);
|
||||
extern PCHAR ArcGetEnvironmentVariable(PCHAR name);
|
||||
|
||||
/* ARCS command line parsing. */
|
||||
extern void prom_init_cmdline(void);
|
||||
extern void prom_init_cmdline(int argc, LONG *argv);
|
||||
|
||||
/* File operations. */
|
||||
extern LONG ArcRead(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
|
||||
|
Reference in New Issue
Block a user