|
@@ -635,7 +635,7 @@ do { \
|
|
|
|
|
|
#define do_trace_printk(fmt, args...) \
|
|
|
do { \
|
|
|
- static const char *trace_printk_fmt \
|
|
|
+ static const char *trace_printk_fmt __used \
|
|
|
__attribute__((section("__trace_printk_fmt"))) = \
|
|
|
__builtin_constant_p(fmt) ? fmt : NULL; \
|
|
|
\
|
|
@@ -679,7 +679,7 @@ int __trace_printk(unsigned long ip, const char *fmt, ...);
|
|
|
*/
|
|
|
|
|
|
#define trace_puts(str) ({ \
|
|
|
- static const char *trace_printk_fmt \
|
|
|
+ static const char *trace_printk_fmt __used \
|
|
|
__attribute__((section("__trace_printk_fmt"))) = \
|
|
|
__builtin_constant_p(str) ? str : NULL; \
|
|
|
\
|
|
@@ -701,7 +701,7 @@ extern void trace_dump_stack(int skip);
|
|
|
#define ftrace_vprintk(fmt, vargs) \
|
|
|
do { \
|
|
|
if (__builtin_constant_p(fmt)) { \
|
|
|
- static const char *trace_printk_fmt \
|
|
|
+ static const char *trace_printk_fmt __used \
|
|
|
__attribute__((section("__trace_printk_fmt"))) = \
|
|
|
__builtin_constant_p(fmt) ? fmt : NULL; \
|
|
|
\
|