Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4559879imb; Wed, 6 Mar 2019 16:57:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzWzRigBz/NIusmW4D2U6za88/JYvzS3K/BMd/+HLDDD3WIKR5wb03mxyJfB097OteyTUp5 X-Received: by 2002:a63:5a49:: with SMTP id k9mr1680796pgm.14.1551920235150; Wed, 06 Mar 2019 16:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551920235; cv=none; d=google.com; s=arc-20160816; b=YRhFGkIVsABbndNK7LxrCXrBKpmMbwMhACTwLS5XNb7zu3EMfvt9t40PdGyRxmpeUU vk3gR4XnS2Lo51HWXPSMRIJWIJZSUQYrey4I0mFQbRYs4BnFIlWaELDoLihZpGsvEl6q 6+LTyWs93ti7R7+yCriT28hyjhRAdzHcIEVZ3qRy1IrrKykej3oNSI7qmZGMBN2Z9Xjh 9tkI/jNldy2p5azXtVIGSZuEllrTsCw0346EEUv4GuqeviJZsvxbnxiFWOi3jTZ2Wc9e 1obneXJol5hBM0PX+bVvKzGwtFEsRmNGmKkKnBtsoZVHh/lsPST5ORK8ItFjed2QYN7A lMCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=P1AZOhfM3Gvlg7+81ODH17a11ZJL6AfDeYe9qyAFOHg=; b=MGLGCKM/aB61JBbmlYX8jdn4cgIKcd4O8cPESCdh4EL/ClxLW+a2lTI8upMa+r1l6b Lb7Z0GUCUIfuDHq4q3utIw78cSwSrt3Yhnx1xtmmiHw4FEhWEHqNfgWZHlaO/segobwM oYT+Oxh1IWY3Y/gv/s64R2ndgc5/oO46dYSQAvsitppSBlUBHO8MCVgjItUNLxlNFI4J 8MHCcaqXr+e4GTZlaJJmaeSyVMnwo2yWNxr7fx/ON6xJcBVKMi/L77kfzaSUP/b55qu4 TxIl2tnM6Qo3nqsAThsSbfd6gpVE3eP3VrxVMAsbtD/QYZQXNYJJ34aAtk+ekIUHa9I8 k8zQ== 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 h78si2927500pfj.70.2019.03.06.16.56.59; Wed, 06 Mar 2019 16:57:15 -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 S1726274AbfCGA4g (ORCPT + 99 others); Wed, 6 Mar 2019 19:56:36 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:59900 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726010AbfCGA4f (ORCPT ); Wed, 6 Mar 2019 19:56:35 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 302B53742877732435B7; Thu, 7 Mar 2019 08:56:33 +0800 (CST) Received: from [127.0.0.1] (10.74.221.148) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Thu, 7 Mar 2019 08:56:29 +0800 Subject: Re: [tip:x86/urgent] x86/mm: Remove unused variable 'cpu' To: , , , , , , , Borislav Petkov References: <20190228220155.88124-1-cai@lca.pw> From: Zhangshaokun Message-ID: <5ec9d97d-f225-e9be-58dc-fed582d8e45d@hisilicon.com> Date: Thu, 7 Mar 2019 08:56:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.221.148] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A little confused, https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/cleanups&id=691b9ab6c9676e5868a4787be9041dd990005311 On 2019/3/7 6:33, tip-bot for Qian Cai wrote: > 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, > > . >