Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4479235imb; Wed, 6 Mar 2019 14:36:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzxHaouDKTZ0f/RFHQfgC2dlm/Am9uLW6cpYKn5/XJZ8ddtILpsbxlAT3Grk64SaekvJw6r X-Received: by 2002:a17:902:b402:: with SMTP id x2mr9321464plr.53.1551911771736; Wed, 06 Mar 2019 14:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551911771; cv=none; d=google.com; s=arc-20160816; b=HecdN6D9Vs3kFZyEF3j+HFBqJ/6i9vCjsZcP4mZrEzAaZ2+cFE4gDtaG2lsqmUOW9F h8AZn+Qfu9pHNy8yxkcROd4+ivAIRER2BNAyMchf1yc1nwAFyh7Rp8Goy//+ntmXDgHQ uIYAXIdMBAqXmOLcsuGL+YT7ZmLWa/ZUlSBd2AQOQuYZkXLKQ5r+c+0hmdBW+hS/PDvM LS1WBRUB7yb9nYOq7rEE4LvK1LBzvIUqt20oViYB48taqrPDW35iR/pa4dRdEFmZcVu3 9zVA4KYx4OBk1Iu64vQ337A47/DBqppAPutvUoIXN9Kfq7L2TNv6gYDwpJeV4boH3oE5 YJMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=yODHZltbPCWQPIszSh2wx9raYQrKLV+Wl0vxTeLHKhk=; b=a4gnp6ntTicuSmm1RDiQ97PKEIjDxgWw87yudM5mwq/dAj3+P5zFCQgTw+dMPjg/du 14im6WydhmjPVKaklmpzg1u+X/cWlVhHnoZIJ61yhsFWay0ERW0uFsusrJDbwgT151Wv RZvoFOrNbjmzkjYKkAvt0fizE5T90GIW9f57AnUZedhlKe9D0QnSBRzHlLgkKl2Vfpu0 GXpAbFDZ8GaIimqKmKC7ImD/ds7AajeCfBY1GZ6PWmk8nxxRJH6LO5KH7qdK9/n/H9Ia coWVFXyujDmHkd86JQErW7gndk1FJ7xoS7HUZy6wPBt/Jskzt0rOSr3/+0nkXuo6+pkl i6ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si2493113plt.120.2019.03.06.14.35.56; Wed, 06 Mar 2019 14:36:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727493AbfCFWdT (ORCPT + 99 others); Wed, 6 Mar 2019 17:33:19 -0500 Received: from terminus.zytor.com ([198.137.202.136]:35991 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbfCFWdS (ORCPT ); Wed, 6 Mar 2019 17:33:18 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x26MXBSE1911684 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 6 Mar 2019 14:33:11 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x26MXAXE1911675; Wed, 6 Mar 2019 14:33:10 -0800 Date: Wed, 6 Mar 2019 14:33:10 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Qian Cai Message-ID: Cc: luto@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, cai@lca.pw Reply-To: hpa@zytor.com, linux-kernel@vger.kernel.org, cai@lca.pw, luto@kernel.org, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <20190228220155.88124-1-cai@lca.pw> References: <20190228220155.88124-1-cai@lca.pw> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/mm: Remove unused variable 'cpu' Git-Commit-ID: 3609e31bc8dc03b701390f79c74fc7fe92b95039 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3609e31bc8dc03b701390f79c74fc7fe92b95039 Gitweb: https://git.kernel.org/tip/3609e31bc8dc03b701390f79c74fc7fe92b95039 Author: Qian Cai AuthorDate: Thu, 28 Feb 2019 17:01:55 -0500 Committer: Thomas Gleixner CommitDate: Wed, 6 Mar 2019 23:24:52 +0100 x86/mm: Remove unused variable 'cpu' 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 --- 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,