Skip to content

Commit 3609e31

Browse files
Qian CaiKAGA-KOKO
authored andcommitted
x86/mm: Remove unused variable 'cpu'
The commit a2055ab ("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; ^~~ Fixes: a2055ab ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc") Signed-off-by: Qian Cai <cai@lca.pw> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andyt Lutomirski <luto@kernel.org> Cc: dave.hansen@linux.intel.com Cc: peterz@infradead.org Cc: bp@alien8.de Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/20190228220155.88124-1-cai@lca.pw
1 parent a2863b5 commit 3609e31

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/x86/mm/tlb.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
685685
* that UV should be updated so that smp_call_function_many(),
686686
* etc, are optimal on UV.
687687
*/
688-
unsigned int cpu;
689-
690-
cpu = smp_processor_id();
691688
cpumask = uv_flush_tlb_others(cpumask, info);
692689
if (cpumask)
693690
smp_call_function_many(cpumask, flush_tlb_func_remote,

0 commit comments

Comments
 (0)