public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Li Zhong <zhong@linux.vnet.ibm.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: rostedt@goodmis.org
Subject: [PATCH] fix compile warnings: enumeration value ‘TRACE_REG_PERF_REGISTER’ not handled in switch
Date: Tue, 28 Feb 2012 17:41:37 +0800	[thread overview]
Message-ID: <1330422097.7342.7.camel@ThinkPad-T61> (raw)

This patch tries to fix the compile warnings: 
kernel/trace/trace_events.c: In function ‘ftrace_event_reg’:
kernel/trace/trace_events.c:152: warning: enumeration value
‘TRACE_REG_PERF_REGISTER’ not handled in switch
kernel/trace/trace_events.c:152: warning: enumeration value
‘TRACE_REG_PERF_UNREGISTER’ not handled in switch
kernel/trace/trace_kprobe.c: In function ‘kprobe_register’:
kernel/trace/trace_kprobe.c:1899: warning: enumeration value
‘TRACE_REG_PERF_REGISTER’ not handled in switch
kernel/trace/trace_kprobe.c:1899: warning: enumeration value
‘TRACE_REG_PERF_UNREGISTER’ not handled in switch

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
---
 include/linux/ftrace_event.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index c3da42d..235753d 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -144,8 +144,10 @@ struct event_filter;
 enum trace_reg {
 	TRACE_REG_REGISTER,
 	TRACE_REG_UNREGISTER,
+#ifdef CONFIG_PERF_EVENTS
 	TRACE_REG_PERF_REGISTER,
 	TRACE_REG_PERF_UNREGISTER,
+#endif
 };
 
 struct ftrace_event_call;
-- 
1.7.1


                 reply	other threads:[~2012-02-28  9:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330422097.7342.7.camel@ThinkPad-T61 \
    --to=zhong@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox