* [PATCH] [TRIVIAL] perf: missing struct before structure name
@ 2012-07-17 2:14 Jovi Zhang
2012-07-26 15:17 ` [tip:perf/core] perf/x86: Fix " tip-bot for Jovi Zhang
0 siblings, 1 reply; 2+ messages in thread
From: Jovi Zhang @ 2012-07-17 2:14 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Jiri Kosina, LKML
>From 3abcb73682893ed2bde318d17f1cc3430bf70224 Mon Sep 17 00:00:00 2001
From: Jovi Zhang <bookjovi@gmail.com>
Date: Tue, 17 Jul 2012 17:21:56 +0800
Subject: [PATCH] [TRIVIAL] perf: 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>
---
arch/x86/include/asm/perf_event.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/perf_event.h
b/arch/x86/include/asm/perf_event.h
index 588f52e..2643877 100644
--- a/arch/x86/include/asm/perf_event.h
+++ b/arch/x86/include/asm/perf_event.h
@@ -235,7 +235,7 @@ struct perf_guest_switch_msr {
extern struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr);
extern void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap);
#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;
--
1.7.9.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:perf/core] perf/x86: Fix missing struct before structure name
2012-07-17 2:14 [PATCH] [TRIVIAL] perf: missing struct before structure name Jovi Zhang
@ 2012-07-26 15:17 ` tip-bot for Jovi Zhang
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Jovi Zhang @ 2012-07-26 15:17 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, trivial, a.p.zijlstra, tglx, bookjovi
Commit-ID: 35d56ca9d401d9d0ac8d91e4db1485af5f38f6fd
Gitweb: http://git.kernel.org/tip/35d56ca9d401d9d0ac8d91e4db1485af5f38f6fd
Author: Jovi Zhang <bookjovi@gmail.com>
AuthorDate: Tue, 17 Jul 2012 10:14:41 +0800
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 26 Jul 2012 15:04:34 +0200
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>
---
arch/x86/include/asm/perf_event.h | 2 +-
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-26 15:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 2:14 [PATCH] [TRIVIAL] perf: missing struct before structure name Jovi Zhang
2012-07-26 15:17 ` [tip:perf/core] perf/x86: Fix " tip-bot for Jovi Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome