From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756102AbbIYMXA (ORCPT ); Fri, 25 Sep 2015 08:23:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39355 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756069AbbIYMW6 (ORCPT ); Fri, 25 Sep 2015 08:22:58 -0400 Date: Fri, 25 Sep 2015 05:22:08 -0700 From: tip-bot for Geliang Tang Message-ID: Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, mingo@kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, geliangtang@163.com, acme@kernel.org, hpa@zytor.com Reply-To: peterz@infradead.org, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, a.p.zijlstra@chello.nl, acme@kernel.org, hpa@zytor.com, geliangtang@163.com, linux-kernel@vger.kernel.org In-Reply-To: <4588e8ab09638458f2451af572827108be3b4a36.1443123796.git.geliangtang@163.com> References: <4588e8ab09638458f2451af572827108be3b4a36.1443123796.git.geliangtang@163.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf/x86: Change test_aperfmperf() and test_intel() to static Git-Commit-ID: 7e5560a5648ab2bce7199c73b9c2a51b846f5541 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7e5560a5648ab2bce7199c73b9c2a51b846f5541 Gitweb: http://git.kernel.org/tip/7e5560a5648ab2bce7199c73b9c2a51b846f5541 Author: Geliang Tang AuthorDate: Thu, 24 Sep 2015 04:48:53 -0700 Committer: Ingo Molnar CommitDate: Fri, 25 Sep 2015 09:42:40 +0200 perf/x86: Change test_aperfmperf() and test_intel() to static Fixes the following sparse warnings: arch/x86/kernel/cpu/perf_event_msr.c:13:6: warning: symbol 'test_aperfmperf' was not declared. Should it be static? arch/x86/kernel/cpu/perf_event_msr.c:18:6: warning: symbol 'test_intel' was not declared. Should it be static? Signed-off-by: Geliang Tang Cc: Arnaldo Carvalho de Melo Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/4588e8ab09638458f2451af572827108be3b4a36.1443123796.git.geliangtang@163.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/cpu/perf_event_msr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_msr.c b/arch/x86/kernel/cpu/perf_event_msr.c index 086b12e..f32ac13 100644 --- a/arch/x86/kernel/cpu/perf_event_msr.c +++ b/arch/x86/kernel/cpu/perf_event_msr.c @@ -10,12 +10,12 @@ enum perf_msr_id { PERF_MSR_EVENT_MAX, }; -bool test_aperfmperf(int idx) +static bool test_aperfmperf(int idx) { return boot_cpu_has(X86_FEATURE_APERFMPERF); } -bool test_intel(int idx) +static bool test_intel(int idx) { if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL || boot_cpu_data.x86 != 6)