aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/trace_seq.h
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2009-04-17 17:17:55 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-18 03:49:10 -0400
commit8e668b5b3455207e4540fc7ccab9ecf70142f288 (patch)
tree7113a2b8902102f4e6a293d17b65acefce728c16 /include/linux/trace_seq.h
parent3189cdb31622f4e40688ce5a6fc5d940b42bc805 (diff)
tracing: remove format attribute of inline function
Due to a cut and paste error, I added the gcc attribute for printf format to the static inline stub of trace_seq_printf. This will cause a compile failure. [ Impact: fix compiler error when CONFIG_TRACING is off ] Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: =?ISO-8859-15?Q?Fr=E9d=E9ric_Weisbecker?= <fweisbec@gmail.com> LKML-Reference: <alpine.DEB.2.00.0904171717080.1016@gandalf.stny.rr.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/trace_seq.h')
-rw-r--r--include/linux/trace_seq.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/trace_seq.h b/include/linux/trace_seq.h
index 15ca2c71af13..37db9bdfbc1a 100644
--- a/include/linux/trace_seq.h
+++ b/include/linux/trace_seq.h
@@ -42,7 +42,6 @@ extern int trace_seq_path(struct trace_seq *s, struct path *path);
42 42
43#else /* CONFIG_TRACING */ 43#else /* CONFIG_TRACING */
44static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) 44static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
45 __attribute__ ((format (printf, 2, 3)))
46{ 45{
47 return 0; 46 return 0;
48} 47}