summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJovi Zhang <bookjovi@gmail.com>2012-07-17 02:14:41 (GMT)
committerIngo Molnar <mingo@kernel.org>2012-07-26 13:04:34 (GMT)
commit35d56ca9d401d9d0ac8d91e4db1485af5f38f6fd (patch)
treef7af68c331d16a0fa88154300e0de62e15a21e47 /arch
parentc1ece48cf7ec07c6b3e093a4036b54bc6078f782 (diff)
downloadlinux-35d56ca9d401d9d0ac8d91e4db1485af5f38f6fd.tar.xz
perf/x86: Fix missing struct before structure name
When CONFIG_PERF_EVENTS disabled, there will have a compiliation error, because missing struct before structure name. Signed-off-by: Jovi Zhang <bookjovi@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Jiri Kosina <trivial@kernel.org> Link: http://lkml.kernel.org/r/CACV3sbKF%3DCX%2B2jWEWesfCA6rBoQ3wDM4-5ac9MuBtVbCtMRHdQ@mail.gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/perf_event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h
index c78f14a..dab3935 100644
--- a/arch/x86/include/asm/perf_event.h
+++ b/arch/x86/include/asm/perf_event.h
@@ -234,7 +234,7 @@ extern struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr);
extern void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap);
extern void perf_check_microcode(void);
#else
-static inline perf_guest_switch_msr *perf_guest_get_msrs(int *nr)
+static inline struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr)
{
*nr = 0;
return NULL;