Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp52003imb; Thu, 28 Feb 2019 15:44:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYJJSCaD1rFTTBgoa7nXQwxf7abOaxhvda2/DAowSAr2OawAHHNKaGvLwU0VheAiivrfq70 X-Received: by 2002:a62:ea08:: with SMTP id t8mr2344496pfh.60.1551397459480; Thu, 28 Feb 2019 15:44:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551397459; cv=none; d=google.com; s=arc-20160816; b=lovLPg1Ev/3QvY8gOqKzGrE4+EsAS/xEPgbz1eB5jOjDMrcHzNbOCYiig2hlKbN2Cg O30Ve6VovYTmJyg/8Jr4bfK/wXCGmMfeekNT86ZSfkqeO51DFFrC86KG+yrYU9Ln+jKT Kp+QYkyxc0bnjUGm9PV12GqtlWE21wJ1VOBR/jm6QfWYchHg01yKT6iCaCLKgabZO7em KmJrFQpEwcgpkutKZK16TmBO/5Rv7YpWSvMjlUBjUD8mQgKgM/kK858wHaZd6hn6uIwr VDKl1r0VQcqtTcCJxSiCr9uwNQAnO0ztSs0TtDPzzj/fxpT7bJq7ZjtbURm9PJq298eW UqjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6puoq5FDOn2tiPOJa1Gx9hftdF4RiGoiStW7ikPvgMQ=; b=gQpZYStcd56GpEcQf/WkrWx90TvuymgCNzYVzZRB2CbiATV/+f6PrsmVOz3x2g6tIF MamNMllNQ1jNQ3bYDp76gtsano1P8XFUf/JhpRaF/mkTd38SLz2IEmRZawKG+8hyf63s 7Lq/o9gOpOyQc7uMENEUjVGEEIF5cHxEIxFgSGB05DffrVHo4LEokq/owLrfJgmPhpa8 pny6brsarFv9eYg/KHSbTDLJ7BBKjn2jX5On5UNML+hRavZ6ThA7PxYaSphObmYNwMPg UwXL7ofZsBk2TcOXiUvIDvXosSXaEhMTBzZ3tb2LeeFi26tzs4Mxs9SgbKFHnHkiMQkC NgZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NQFe50H2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18si7155794pgv.485.2019.02.28.15.44.02; Thu, 28 Feb 2019 15:44:19 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NQFe50H2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728635AbfB1Xn0 (ORCPT + 99 others); Thu, 28 Feb 2019 18:43:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:58202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727707AbfB1Xn0 (ORCPT ); Thu, 28 Feb 2019 18:43:26 -0500 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 AEC1D218D9 for ; Thu, 28 Feb 2019 23:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551397406; bh=dplmfv6vVROr0h1jNUQcvIOIDqhJRQKcihmYyn7pKts=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NQFe50H23wRdHX2hV0MXfoiF79PbTWAy5QhoyuStIjEiC9Bsjk/N1hFK6EfqLS6lg QVi7rQ7iZ8dnYx/0iGKi/QZM8YBciEH5lfeaixmA4qHOTqyM4zWb7lZqAwlyYmbMnI nwkR2P2/luyt+ZF+1sVDa9EwCU0JPG+mzEohNTOQ= Received: by mail-wr1-f51.google.com with SMTP id n2so23883220wrw.8 for ; Thu, 28 Feb 2019 15:43:25 -0800 (PST) X-Gm-Message-State: APjAAAVA5Yq21qyU+1b0ubrRbjuUwW9dL8getdMnr/XhOEF+x5OGgW9w 3o2W2T0Nz+dYeXxREv8PxXBxy3w0/VB4gGsuFk6CnQ== X-Received: by 2002:adf:e58f:: with SMTP id l15mr1212854wrm.309.1551397404167; Thu, 28 Feb 2019 15:43:24 -0800 (PST) MIME-Version: 1.0 References: <20190228220155.88124-1-cai@lca.pw> In-Reply-To: <20190228220155.88124-1-cai@lca.pw> From: Andy Lutomirski Date: Thu, 28 Feb 2019 15:43:12 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/mm: fix "cpu" set but not used To: Qian Cai Cc: Dave Hansen , Andrew Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 28, 2019 at 2:02 PM Qian Cai wrote: > > 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; > ^~~ > Acked-by: Andyt Lutomirski