perf/x86: Fix missing struct before structure name
authorJovi Zhang <[email protected]>
Tue, 17 Jul 2012 02:14:41 +0000 (10:14 +0800)
committerIngo Molnar <[email protected]>
Thu, 26 Jul 2012 13:04:34 +0000 (15:04 +0200)
When CONFIG_PERF_EVENTS disabled, there will have a compiliation
error, because missing struct before structure name.

Signed-off-by: Jovi Zhang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Jiri Kosina <[email protected]>
Link: http://lkml.kernel.org/r/CACV3sbKF%3DCX%[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/perf_event.h

index c78f14a0df0029a35cbedcb22594fafa1c9110be..dab39350e51e446917d5b5e302fe1ac2214b10d0 100644 (file)
@@ -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;