Skip to content

Commit 5e9b397

Browse files
Li ZefanIngo Molnar
authored andcommitted
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>
1 parent 7b2a351 commit 5e9b397

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/trace/trace_export.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
struct ____ftrace_##name { \
4949
tstruct \
5050
}; \
51-
static void __used ____ftrace_check_##name(void) \
51+
static void __always_unused ____ftrace_check_##name(void) \
5252
{ \
5353
struct ____ftrace_##name *__entry = NULL; \
5454
\
55-
/* force cmpile-time check on F_printk() */ \
55+
/* force compile-time check on F_printk() */ \
5656
printk(print); \
5757
}
5858

0 commit comments

Comments
 (0)