diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2019-10-22 19:13:14 +0300 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2019-10-24 07:10:34 +0300 |
commit | 7b16831d1eb1d2f2cbca6f01700a20a73aad57c0 (patch) | |
tree | db297783cf078634edae29f1de4660b4676e1f40 /arch/mips/include/asm/sgialib.h | |
parent | cbd09241dd9db02caceb958b9ceb9e91762a0572 (diff) | |
download | linux-7b16831d1eb1d2f2cbca6f01700a20a73aad57c0.tar.xz |
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
Diffstat (limited to 'arch/mips/include/asm/sgialib.h')
-rw-r--r-- | arch/mips/include/asm/sgialib.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/mips/include/asm/sgialib.h b/arch/mips/include/asm/sgialib.h index 40ab4ef0b1dc..80f900417f7e 100644 --- a/arch/mips/include/asm/sgialib.h +++ b/arch/mips/include/asm/sgialib.h @@ -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); |