Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp259967img; Mon, 18 Mar 2019 02:29:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHhfRsg9BrUWFEHiDnezfQs4oQiDQCX4W0FooSxhB7SoW/O+WDOWZ1FRr2ovNoYS+Hz8OW X-Received: by 2002:aa7:83ca:: with SMTP id j10mr18282751pfn.50.1552901345539; Mon, 18 Mar 2019 02:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552901345; cv=none; d=google.com; s=arc-20160816; b=PXHhpiOz0heFvupu1dUxY0DCDK+I6/9M3dGLertxGcWksG2huy5m5O741iJ21VA9ty VwyAbBwI2gPfplToyKClN6i/jv9vZkzkMzYJ5xZ1aHH12jDltFu28Le6dvekHM3tqp7E bheHAWH2L37yCwjHeReKkONSyf4YMRBLYrWKtM6OvOvbUchN8iLheCbyOeTh6yU0Sq4Z QeD8q1F8TElxKu30Ppe3frKiTUR2R9F878SvMGKvW0hRthGR/hfOLhbf088mIX9NAsmZ pgOP3f9mVPholrPC07M52bxBVlKfwCHorRjiCfyDxU5PMlJrxp3lapujfcbBJceWwvYd J39g== 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=Ng3sQQCLRCMjHIJlErJdFHhY6RY2VI+9diDCfD8rpHA=; b=dxubPrR8dSK7unPg+iUhtarZmF4Rxz5+AVsGreodact6DgnZOsQRIuo6E6ZxRczDMe ORbNErpyQDTkgj4Qo4aZfoHCdzxFS0uN3jST14uVd+oMuMJNjD/ny5K6WyIPZ/LLe9F5 3ySC+XKNlxUayxMiR1nFQB28+gzxIxZ3N/5T8lOFAWCRgPIFp/pidw5f9XCzYUU9dyf9 hoGzc1Q9DiBFBiBzRZ2Y+Vbl+oKAJAt83UJVgkttPaem3oei3HjDm8dMWPLcclSrUw3H nVS4o5ybAbgd+/N2ZAND9gY1ihD/AcglmPIWmi7+cBSABEKJ8yrn+SZ8ejz/6FaV+/k5 Hktw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=plBByShP; 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 t16si7239476pgh.138.2019.03.18.02.28.50; Mon, 18 Mar 2019 02:29:05 -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=plBByShP; 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 S1727218AbfCRJ1j (ORCPT + 99 others); Mon, 18 Mar 2019 05:27:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:33000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbfCRJ1h (ORCPT ); Mon, 18 Mar 2019 05:27:37 -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 644312075C; Mon, 18 Mar 2019 09:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901256; bh=Ijj4uvqnKypIgSt15Wio4VAF6FjNtuI5Jk3Yk/d2Ofw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=plBByShPhxKTXtRkVWbE5qVdDsuREz20HWG3W8Nn4QIwk3r44deWd3zSv1cXw7zuM pMfmXzM9sFXI0VWpqHJxnaUhPstyeL7nLgUNnk4TR8VOv/qZSm5w3Ux3ojy/7Y3K+P 35sZ6NTMssMA9XiC6L4hXYhI4nNmUuNXeRynKi/o= 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 5.0 32/43] perf/x86: Fixup typo in stub functions Date: Mon, 18 Mar 2019 10:24:24 +0100 Message-Id: <20190318083716.809392022@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318083715.877441740@linuxfoundation.org> References: <20190318083715.877441740@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 5.0-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 @@ -1032,12 +1032,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) { }