Re: [PATCH] x86/mm: fix "cpu" set but not used
From: Andy Lutomirski
Date: Thu Feb 28 2019 - 18:43:29 EST
On Thu, Feb 28, 2019 at 2:02 PM Qian Cai <cai@xxxxxx> wrote:
>
> The commit a2055abe9c67 ("x86/mm: Pass flush_tlb_info to
> flush_tlb_others() etc") removed the unnecessary cpu parameter from
> uv_flush_tlb_others() but left an unused variable.
>
> arch/x86/mm/tlb.c: In function 'native_flush_tlb_others':
> arch/x86/mm/tlb.c:688:16: warning: variable 'cpu' set but not used
> [-Wunused-but-set-variable]
> unsigned int cpu;
> ^~~
>
Acked-by: Andyt Lutomirski <luto@xxxxxxxxxx>