diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-14 21:51:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:40 -0400 |
commit | 38eff2892628fa5c4fc8962a17b7296f42833ebe (patch) | |
tree | 6a138b3a4bd712b65797bae334bd7bd3ec12c038 | |
parent | 66b3fad3f4c535c92b6a1184d535a97d6aa5d82a (diff) |
constify path argument of trace_seq_path()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | include/linux/trace_seq.h | 4 | ||||
-rw-r--r-- | kernel/trace/trace_output.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/trace_seq.h b/include/linux/trace_seq.h index 7dadc3df0c77..a32d86ec8bf2 100644 --- a/include/linux/trace_seq.h +++ b/include/linux/trace_seq.h | |||
@@ -44,7 +44,7 @@ extern int trace_seq_putmem(struct trace_seq *s, const void *mem, size_t len); | |||
44 | extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, | 44 | extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, |
45 | size_t len); | 45 | size_t len); |
46 | extern void *trace_seq_reserve(struct trace_seq *s, size_t len); | 46 | extern void *trace_seq_reserve(struct trace_seq *s, size_t len); |
47 | extern int trace_seq_path(struct trace_seq *s, struct path *path); | 47 | extern int trace_seq_path(struct trace_seq *s, const struct path *path); |
48 | 48 | ||
49 | #else /* CONFIG_TRACING */ | 49 | #else /* CONFIG_TRACING */ |
50 | static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) | 50 | static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) |
@@ -88,7 +88,7 @@ static inline void *trace_seq_reserve(struct trace_seq *s, size_t len) | |||
88 | { | 88 | { |
89 | return NULL; | 89 | return NULL; |
90 | } | 90 | } |
91 | static inline int trace_seq_path(struct trace_seq *s, struct path *path) | 91 | static inline int trace_seq_path(struct trace_seq *s, const struct path *path) |
92 | { | 92 | { |
93 | return 0; | 93 | return 0; |
94 | } | 94 | } |
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index 0d6ff3555942..690987198ad7 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c | |||
@@ -264,7 +264,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len) | |||
264 | return ret; | 264 | return ret; |
265 | } | 265 | } |
266 | 266 | ||
267 | int trace_seq_path(struct trace_seq *s, struct path *path) | 267 | int trace_seq_path(struct trace_seq *s, const struct path *path) |
268 | { | 268 | { |
269 | unsigned char *p; | 269 | unsigned char *p; |
270 | 270 | ||