lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 28 Feb 2012 17:41:37 +0800
From:	Li Zhong <zhong@...ux.vnet.ibm.com>
To:	LKML <linux-kernel@...r.kernel.org>
Cc:	rostedt@...dmis.org
Subject: [PATCH] fix compile warnings: enumeration value
 ‘TRACE_REG_PERF_REGISTER’ not handled in
 switch

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@...ux.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ