Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4361022imu; Mon, 28 Jan 2019 23:40:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN453/i2Ho8NQ+ODluTZQSNNUPSLZwR7KOR6pBWO7TDYtJTdM7KMsde7XhDkjBg6yFHIknYf X-Received: by 2002:a62:3541:: with SMTP id c62mr24931606pfa.19.1548747604415; Mon, 28 Jan 2019 23:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548747604; cv=none; d=google.com; s=arc-20160816; b=Cd27Z1Bhic6yQNzsVOLsvsASCZOFxBBYMUwMIdKTX1VN2/QvZPVhNdQ+mRjQ+Rp/tg asHEbbpzqRzV8pFyri5jj/mLv7S+SZi7mBG4SUkOqSNyntmutInaHmmc0XJTcjMZArrp fnEpX8eoOv8DXu0vWWmjSer8euTATrsQnwRiuHsBlqbz6On24jEGbVr1My3iOQpWP0Rp IuakB7RU0ChB3qUdChs/qbMGbTe8/txfL1+MRwzqrEX302KYBoVFnlWdjMy0tkz6Qig0 eC7E/Kb1KiNnb0ssiLVW6ptJVlqUz0xuQ00kR7F+CcivuMd2rtrL+pu0Ozqx6XLAqfzN t5CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=p/+N/2sc5XPbVU1hQD4d93opx7M1W0DG9jWgpz8ZrHc=; b=DE2nOg3yPuI6C+QWrZxGaeggwaqtP7txyfwP+zb5+cMgSM6um76Xoh1FRlvLZleJZB CFTcTHTrbgiAVZIalkNp7FWWiyyl5d+4XjeWMqhIb7ootWUQ3DoXGrhCAMktsQWUjCFV s77pwQidht+07S+Ggnw8grYrmiB/nbrEEUOQJTmFVD8JCxOEPbaGsLRawEY3OIiMv3kG FlIY7OBRK5cTqh9aXNy7Jq4n76e3TPS5s49TLOjyMcxwdDzS2x0XoCznzKsmwZ9IoXxe hR8sYKC7Tv7DnV5SHDGYZRMZU96Jk4Quyl42YDPA0jPsot+vU8bV2yMvQHEwubj1HjkM fFMg== 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 n187si19212087pfn.83.2019.01.28.23.39.48; Mon, 28 Jan 2019 23:40:04 -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 S1726988AbfA2Hhl (ORCPT + 99 others); Tue, 29 Jan 2019 02:37:41 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2693 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725554AbfA2Hhl (ORCPT ); Tue, 29 Jan 2019 02:37:41 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 17197B05D9EAE5438D13; Tue, 29 Jan 2019 15:37:39 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Tue, 29 Jan 2019 15:37:32 +0800 From: Shaokun Zhang To: , CC: Shaokun Zhang , Andy Lutomirski , Dave Hansen , Peter Zijlstra Subject: [PATCH] x86/mm: Remove unused cpu variable Date: Tue, 29 Jan 2019 15:36:57 +0800 Message-ID: <1548747417-33551-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cpu variable is never used after commit ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc"), so remove it. Cc: Andy Lutomirski Cc: Dave Hansen Cc: Peter Zijlstra Signed-off-by: Shaokun Zhang --- 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, -- 2.7.4