summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_export.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-11-02 08:51:13 +0800
committerIngo Molnar <mingo@elte.hu>2009-11-02 15:47:54 +0100
commit5e9b397292ca0b9409dced33e3a22ec993377064 (patch)
tree3d9156541b462e854c8c02e4413e5e64169bc4e3 /kernel/trace/trace_export.c
parent7b2a35132ad0a70902dcd2844c27ed64cda0ce9b (diff)
downloadop-kernel-dev-5e9b397292ca0b9409dced33e3a22ec993377064.zip
op-kernel-dev-5e9b397292ca0b9409dced33e3a22ec993377064.tar.gz
tracing: Fix to use __always_unused attribute
____ftrace_check_##name() is used for compile-time check on F_printk() only, so it should be marked as __unused instead of __used. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> LKML-Reference: <4AEE2D01.4010305@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r--kernel/trace/trace_export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 9753fcc..c74848d 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -48,11 +48,11 @@
struct ____ftrace_##name { \
tstruct \
}; \
-static void __used ____ftrace_check_##name(void) \
+static void __always_unused ____ftrace_check_##name(void) \
{ \
struct ____ftrace_##name *__entry = NULL; \
\
- /* force cmpile-time check on F_printk() */ \
+ /* force compile-time check on F_printk() */ \
printk(print); \
}
OpenPOWER on IntegriCloud