Re: [04/21] powerpc: Mark both tmp variables as unused

From: Michael Ellerman
Date: Wed Mar 14 2018 - 05:32:33 EST


On Sun, 2018-02-25 at 17:22:19 UTC, Mathieu Malaterre wrote:
> Since the value of `tmp` is never intended to be read, declare both `tmp`
> variables as unused. Fix warning (treated as error in W=1):
>
> CC arch/powerpc/kernel/signal_32.o
> arch/powerpc/kernel/signal_32.c: In function â??sys_swapcontextâ??:
> arch/powerpc/kernel/signal_32.c:1048:16: error: variable â??tmpâ?? set but not used [-Werror=unused-but-set-variable]
> unsigned char tmp;
> ^~~
> arch/powerpc/kernel/signal_32.c: In function â??sys_debug_setcontextâ??:
> arch/powerpc/kernel/signal_32.c:1234:16: error: variable â??tmpâ?? set but not used [-Werror=unused-but-set-variable]
> unsigned char tmp;
> ^~~
> cc1: all warnings being treated as errors
>
> Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/67b464a89c21c9edd45ad15c457bb5

cheers