diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-03-26 22:21:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-31 11:45:13 -0400 |
commit | b14b70a6a4e394c9630bcde17e07d3bcdcbca27e (patch) | |
tree | 80a6582f54334e8379d58a573f708d60dfd680c0 /kernel/trace/trace_output.h | |
parent | f285901bb21355bb47106658ef14eeb6b8ed538f (diff) |
trace: make argument 'mem' of trace_seq_putmem() const
Impact: fix build warning
I passed a const value to trace_seq_putmem(), and I got compile warning.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_output.h')
-rw-r--r-- | kernel/trace/trace_output.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index 46fb9612d884..e0bde39c2dd9 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -31,8 +31,9 @@ extern ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf, | |||
31 | size_t cnt); | 31 | size_t cnt); |
32 | extern int trace_seq_puts(struct trace_seq *s, const char *str); | 32 | extern int trace_seq_puts(struct trace_seq *s, const char *str); |
33 | extern int trace_seq_putc(struct trace_seq *s, unsigned char c); | 33 | extern int trace_seq_putc(struct trace_seq *s, unsigned char c); |
34 | extern int trace_seq_putmem(struct trace_seq *s, void *mem, size_t len); | 34 | extern int trace_seq_putmem(struct trace_seq *s, const void *mem, size_t len); |
35 | extern int trace_seq_putmem_hex(struct trace_seq *s, void *mem, size_t len); | 35 | extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, |
36 | size_t len); | ||
36 | extern void *trace_seq_reserve(struct trace_seq *s, size_t len); | 37 | extern void *trace_seq_reserve(struct trace_seq *s, size_t len); |
37 | extern int trace_seq_path(struct trace_seq *s, struct path *path); | 38 | extern int trace_seq_path(struct trace_seq *s, struct path *path); |
38 | extern int seq_print_userip_objs(const struct userstack_entry *entry, | 39 | extern int seq_print_userip_objs(const struct userstack_entry *entry, |