Re: [PATCH] sh: kernel: traps: remove unused variable

2021-01-18 Thread John Paul Adrian Glaubitz
On 12/10/20 1:44 PM, Anders Roxell wrote: > When building defconfig the following warning shows up: > > arch/sh/kernel/traps.c: In function 'nmi_trap_handler': > arch/sh/kernel/traps.c:183:15: warning: unused variable 'cpu' > [-Wunused-variable] > unsigned int cpu = smp_processor_id(); >

Re: [PATCH] sh: kernel: traps: remove unused variable

2020-12-29 Thread Geert Uytterhoeven
On Thu, Dec 10, 2020 at 1:46 PM Anders Roxell wrote: > When building defconfig the following warning shows up: > > arch/sh/kernel/traps.c: In function 'nmi_trap_handler': > arch/sh/kernel/traps.c:183:15: warning: unused variable 'cpu' > [-Wunused-variable] > unsigned int cpu = smp_processor_id(

[PATCH] sh: kernel: traps: remove unused variable

2020-12-10 Thread Anders Roxell
When building defconfig the following warning shows up: arch/sh/kernel/traps.c: In function 'nmi_trap_handler': arch/sh/kernel/traps.c:183:15: warning: unused variable 'cpu' [-Wunused-variable] unsigned int cpu = smp_processor_id(); ^~~ Remove an unused variable 'cpu'. Fixes: f