summaryrefslogtreecommitdiffstats
path: root/arch/mips/rb532
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-09-06 10:51:29 +0200
committerRalf Baechle <ralf@linux-mips.org>2012-12-13 18:15:28 +0100
commit66315e15cd937cec2eae5d450ddc787907d29854 (patch)
treeea37d3250c55631c5ddf1cec71c4cb5e9fb7a0f2 /arch/mips/rb532
parentae1242a546704dfd5c35f26cc1bf401b0aac9c70 (diff)
downloadlinux-66315e15cd937cec2eae5d450ddc787907d29854.tar.bz2
MIPS: RB532: Fix build of prom code.
CC arch/mips/rb532/prom.o /home/ralf/src/linux/linux-mips/arch/mips/rb532/prom.c: In function ‘prom_setup_cmdline’: /home/ralf/src/linux/linux-mips/arch/mips/rb532/prom.c:75:22: error: variable ‘prom_envp’ set but not used [-Werror=unused-but-set-variable] This warning exists in gcc 4.6.0 and newer. Kernels 2.6.40 and newer use -Wunused-but-set-variable to suppress it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r--arch/mips/rb532/prom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index d7c26d00cfef..a757ded437cd 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -72,12 +72,11 @@ void __init prom_setup_cmdline(void)
static char cmd_line[COMMAND_LINE_SIZE] __initdata;
char *cp, *board;
int prom_argc;
- char **prom_argv, **prom_envp;
+ char **prom_argv;
int i;
prom_argc = fw_arg0;
prom_argv = (char **) fw_arg1;
- prom_envp = (char **) fw_arg2;
cp = cmd_line;
/* Note: it is common that parameters start