Skip to content

Commit

Permalink
constify path argument of trace_seq_path()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 66b3fad commit 38eff28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/linux/trace_seq.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern int trace_seq_putmem(struct trace_seq *s, const void *mem, size_t len);
extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
size_t len);
extern void *trace_seq_reserve(struct trace_seq *s, size_t len);
extern int trace_seq_path(struct trace_seq *s, struct path *path);
extern int trace_seq_path(struct trace_seq *s, const struct path *path);

#else /* CONFIG_TRACING */
static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
Expand Down Expand Up @@ -88,7 +88,7 @@ static inline void *trace_seq_reserve(struct trace_seq *s, size_t len)
{
return NULL;
}
static inline int trace_seq_path(struct trace_seq *s, struct path *path)
static inline int trace_seq_path(struct trace_seq *s, const struct path *path)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/trace_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len)
return ret;
}

int trace_seq_path(struct trace_seq *s, struct path *path)
int trace_seq_path(struct trace_seq *s, const struct path *path)
{
unsigned char *p;

Expand Down

0 comments on commit 38eff28

Please sign in to comment.