From patchwork Fri Jan 24 09:29:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233201 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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 C9DD8C32771 for ; Fri, 24 Jan 2020 09:53:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 933D720718 for ; Fri, 24 Jan 2020 09:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859637; bh=x2uuj7uGJLjRNyf1Xo+Hrb0zCDBdgtExyQg0lzggqB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=aGPCyYLkU9+GRKF/+6L3dnDlAeh+vxelzcmM0jq0vqPFotjx9D4ykEwJ4NqB0cqRm kCi3pQPhA4v5bTdWqgXCH+Izd4M3ak1FRKs1eP/j5bPcpBIMclq19Afg7xQq5MkHgg 2h5nIBZdbvtnqTFM4tx0FmiRdUDVvInM009Q/M/k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388316AbgAXJxx (ORCPT ); Fri, 24 Jan 2020 04:53:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:56698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730133AbgAXJxw (ORCPT ); Fri, 24 Jan 2020 04:53:52 -0500 Received: from localhost (unknown [145.15.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B172C20709; Fri, 24 Jan 2020 09:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579859632; bh=x2uuj7uGJLjRNyf1Xo+Hrb0zCDBdgtExyQg0lzggqB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fmUchGV42vE3Bo1T5Lk+urPg3TivL4XAEYY2HIH3v5yJ+UWd6Rg5S1beSSoLsmiOi dYGVxhYUT1s9OVGUIgiWcVKhf4PUafQUAAMPSD1d50aDhvc1iQuOFHf9J2pNrn4UqO YyrbtQsyuIfa69ejtnTUsvp392qdSsPH8keVZgBs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qian Cai , Thomas Gleixner , Andyt Lutomirski , dave.hansen@linux.intel.com, peterz@infradead.org, bp@alien8.de, hpa@zytor.com, Sasha Levin Subject: [PATCH 4.14 138/343] x86/mm: Remove unused variable cpu Date: Fri, 24 Jan 2020 10:29:16 +0100 Message-Id: <20200124092938.112917821@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124092919.490687572@linuxfoundation.org> References: <20200124092919.490687572@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 5400a24e1a8c0..c5d7b4ae17cab 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -651,9 +651,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,