From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6BD1C33CAF for ; Thu, 16 Jan 2020 17:04:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D8C320730 for ; Thu, 16 Jan 2020 17:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579194271; bh=ulldtO/RFNmOoEzUWRdK1DRt06HF+hBHLHkpTjhoxSU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=z/QGi6flHHrrhP46WMSSmQvkn6q7MrczVGSlTlj+SGvcuEALD0zCC783cpT/2FoSJ srDGadlfk3m/mbyWbzUx/HuNsWMdTgzED37DfmPqgOziwf0tc0OYS9m+gSZB7/9VNm +g4QEpJIbfuMnFv0tTwdNH5d6KCmQdyoIDjSF9ro= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388451AbgAPRCn (ORCPT ); Thu, 16 Jan 2020 12:02:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:55590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388408AbgAPRCg (ORCPT ); Thu, 16 Jan 2020 12:02:36 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4B802087E; Thu, 16 Jan 2020 17:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579194155; bh=ulldtO/RFNmOoEzUWRdK1DRt06HF+hBHLHkpTjhoxSU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QBbnXdsELDhGLcaFlEPclgoT2RjmL2F4vDxKNCvwVwoOKbpNHhINg07CdPlCFC4ig rP9p6WO2bJ9ugS5f4dtXv3AYbsuLjH/Fif4Xh8ScZSwWWSatK/NvSEEtT3zs1pcIms LWoEPHV/+MI8CRdbzXt45kb9W4WYYqPHCjKKGvhg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qian Cai , Thomas Gleixner , Andyt Lutomirski , dave.hansen@linux.intel.com, peterz@infradead.org, bp@alien8.de, hpa@zytor.com, Sasha Levin Subject: [PATCH AUTOSEL 4.19 238/671] x86/mm: Remove unused variable 'cpu' Date: Thu, 16 Jan 2020 11:52:27 -0500 Message-Id: <20200116165940.10720-121-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116165940.10720-1-sashal@kernel.org> References: <20200116165940.10720-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qian Cai [ Upstream commit 3609e31bc8dc03b701390f79c74fc7fe92b95039 ] 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; ^~~ Fixes: a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc") Signed-off-by: Qian Cai Signed-off-by: Thomas Gleixner Acked-by: Andyt Lutomirski 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 Signed-off-by: Sasha Levin --- 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 a6836ab0fcc7..b72296bd04a2 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -664,9 +664,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, -- 2.20.1