Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp265312img; Mon, 18 Mar 2019 02:36:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwpxYtzp4AXR2uYfmVUS+EnBUmXehAjkr6fNv55rwlulHH3Z9/GuAjCS1AtJa6uVNTBQwC X-Received: by 2002:a17:902:2ba8:: with SMTP id l37mr17854361plb.17.1552901818033; Mon, 18 Mar 2019 02:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552901818; cv=none; d=google.com; s=arc-20160816; b=scRFhhvzvXoRANn+of7f4ue8weYXXJp+wi+6LOfWbuG+5bMwIT1EHN6tjbCLxFFcrh oVaqx9mixNlJvRNqy7hKNDu3PG3jY8juwatJSsSQjGK1kABTBP3f6GhD6jkLB9Cso9vZ ybyQfLE3FyCkbKmO6Y+w6O5arUrbFHnBzl9Z2Hg1MzDWkRV7FSGq2A+4zG9hFu5YRoY1 u0q4Bs6RYP/W/LtiQhWYkvcHx9zf4a2fKfZa6Ojm7FWSAKkcAoYpVHK6LJI/aFNQ0f2a hkQ9DPlOWICuB1CMmMrRUM+JTMF/HFu0BbV1MSMMIbjdY8tav1+J1ardVFvm10WOsTeP OXrA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5zR8Df/nBH7gAxBAOpBzZHXJauttGoCMOQAZRyg5HqA=; b=Kt20PivhQ8TzgWe1XtBVSN7WKgld4dYuOEquT5jeVyLOoDXTZrsoEylhknb4zInvso jWPnU+MoMAFTxYclBUGTi1lDPooLqUErxJVgg9GOig5e0RWU8OSJoCzQ/0peIuyx9zis 8QBtbl+WCNBoFKole7As6AnGQLLNpsQLjIGVbaxou2XAlyhV2pwqhRT/KzJfowDI/61n h+TLNFfWdXDnJNuDbeHKQMUiJDdhA94ayAOrGTGxKnEN3MQYsXEzJ+VmVrhMWX677HH8 1QPfr8mmlSwJ1G91Hwt7ZC+ddKPh/57Dqw9fQKRqZ/VJgG2lYapBIGJW2sQyD1E1x35G N5YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pDDXzMMS; 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 59si9379259plc.84.2019.03.18.02.36.43; Mon, 18 Mar 2019 02:36:58 -0700 (PDT) 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=pDDXzMMS; 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 S1729107AbfCRJfY (ORCPT + 99 others); Mon, 18 Mar 2019 05:35:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:43746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387435AbfCRJfX (ORCPT ); Mon, 18 Mar 2019 05:35:23 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 3588C214AF; Mon, 18 Mar 2019 09:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901722; bh=NLkWyw9edgdl60/DApYV6CRfLdRyP0f2mtET1H9rKwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pDDXzMMS5yr0hyyjEiN8Hz83VPrs/tdSh5Vtln2BV3kLjjviewH+vIJL5xsR8IPd9 rdpNXle+2T9Ak/aQ08inLx57XI8ePZsokzzFWGxlz6q/YcgANtZcMzKNs5ggvc3HzP ibMv5epcBbkeCV/0zLGeR8Z3m666I1sJ1UMVA5r0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , "Peter Zijlstra (Intel)" , Linus Torvalds , Thomas Gleixner , Ingo Molnar Subject: [PATCH 4.14 28/34] perf/x86: Fixup typo in stub functions Date: Mon, 18 Mar 2019 10:25:52 +0100 Message-Id: <20190318084148.691353334@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318084144.657740413@linuxfoundation.org> References: <20190318084144.657740413@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Zijlstra commit f764c58b7faa26f5714e6907f892abc2bc0de4f8 upstream. Guenter reported a build warning for CONFIG_CPU_SUP_INTEL=n: > With allmodconfig-CONFIG_CPU_SUP_INTEL, this patch results in: > > In file included from arch/x86/events/amd/core.c:8:0: > arch/x86/events/amd/../perf_event.h:1036:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration > static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu) While harmless (an unsed pointer is an unused pointer, no matter the type) it needs fixing. Reported-by: Guenter Roeck Signed-off-by: Peter Zijlstra (Intel) Cc: Greg Kroah-Hartman Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: stable@vger.kernel.org Fixes: d01b1f96a82e ("perf/x86/intel: Make cpuc allocations consistent") Link: http://lkml.kernel.org/r/20190315081410.GR5996@hirez.programming.kicks-ass.net Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/events/perf_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/events/perf_event.h +++ b/arch/x86/events/perf_event.h @@ -1021,12 +1021,12 @@ static inline int intel_pmu_init(void) return 0; } -static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu) +static inline int intel_cpuc_prepare(struct cpu_hw_events *cpuc, int cpu) { return 0; } -static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc) +static inline void intel_cpuc_finish(struct cpu_hw_events *cpuc) { }