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();
>
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(
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
3 matches
Mail list logo