Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -2
+1 -2
arch/mips/rb532/prom.c
··· 72 72 static char cmd_line[COMMAND_LINE_SIZE] __initdata; 73 73 char *cp, *board; 74 74 int prom_argc; 75 - char **prom_argv, **prom_envp; 75 + char **prom_argv; 76 76 int i; 77 77 78 78 prom_argc = fw_arg0; 79 79 prom_argv = (char **) fw_arg1; 80 - prom_envp = (char **) fw_arg2; 81 80 82 81 cp = cmd_line; 83 82 /* Note: it is common that parameters start