lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-691b9ab6c9676e5868a4787be9041dd990005311@git.kernel.org>
Date:   Tue, 29 Jan 2019 09:39:56 -0800
From:   tip-bot for Shaokun Zhang <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     mingo@...hat.com, linux-kernel@...r.kernel.org,
        peterz@...radead.org, tglx@...utronix.de, luto@...nel.org,
        x86@...nel.org, hpa@...or.com, dave.hansen@...ux.intel.com,
        zhangshaokun@...ilicon.com, bp@...e.de, mingo@...nel.org
Subject: [tip:x86/cleanups] x86/mm/tlb: Remove unused cpu variable

Commit-ID:  691b9ab6c9676e5868a4787be9041dd990005311
Gitweb:     https://git.kernel.org/tip/691b9ab6c9676e5868a4787be9041dd990005311
Author:     Shaokun Zhang <zhangshaokun@...ilicon.com>
AuthorDate: Tue, 29 Jan 2019 15:36:57 +0800
Committer:  Borislav Petkov <bp@...e.de>
CommitDate: Tue, 29 Jan 2019 18:32:30 +0100

x86/mm/tlb: Remove unused cpu variable

The "cpu" local variable became unused after

  a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc").

Remove it.

Signed-off-by: Shaokun Zhang <zhangshaokun@...ilicon.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: x86-ml <x86@...nel.org>
Link: https://lkml.kernel.org/r/1548747417-33551-1-git-send-email-zhangshaokun@hisilicon.com
---
 arch/x86/mm/tlb.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index 999d6d8f0bef..bc4bc7b2f075 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
 		 * that UV should be updated so that smp_call_function_many(),
 		 * etc, are optimal on UV.
 		 */
-		unsigned int cpu;
-
-		cpu = smp_processor_id();
 		cpumask = uv_flush_tlb_others(cpumask, info);
 		if (cpumask)
 			smp_call_function_many(cpumask, flush_tlb_func_remote,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ