Skip to content

Commit 35b9818

Browse files
chenhengqirostedt
authored andcommitted
tracing: Remove orphaned event_trace_printk
The event_trace_printk macro has no callers since commit b8e6555 ("tracing: remove deprecated TRACE_FORMAT"). So drop it. Link: https://lore.kernel.org/[email protected] Signed-off-by: Hengqi Chen <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 3ca4d7a commit 35b9818

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

include/linux/trace_events.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -859,24 +859,6 @@ int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
859859
int trace_set_clr_event(const char *system, const char *event, int set);
860860
int trace_array_set_clr_event(struct trace_array *tr, const char *system,
861861
const char *event, bool enable);
862-
/*
863-
* The double __builtin_constant_p is because gcc will give us an error
864-
* if we try to allocate the static variable to fmt if it is not a
865-
* constant. Even with the outer if statement optimizing out.
866-
*/
867-
#define event_trace_printk(ip, fmt, args...) \
868-
do { \
869-
__trace_printk_check_format(fmt, ##args); \
870-
tracing_record_cmdline(current); \
871-
if (__builtin_constant_p(fmt)) { \
872-
static const char *trace_printk_fmt \
873-
__section("__trace_printk_fmt") = \
874-
__builtin_constant_p(fmt) ? fmt : NULL; \
875-
\
876-
__trace_bprintk(ip, trace_printk_fmt, ##args); \
877-
} else \
878-
__trace_printk(ip, fmt, ##args); \
879-
} while (0)
880862

881863
#ifdef CONFIG_PERF_EVENTS
882864
struct perf_event;

0 commit comments

Comments
 (0)