Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

constify path argument of trace_seq_path()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 38eff289 66b3fad3

+3 -3
+2 -2
include/linux/trace_seq.h
··· 44 44 extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, 45 45 size_t len); 46 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 49 #else /* CONFIG_TRACING */ 50 50 static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) ··· 88 88 { 89 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 93 return 0; 94 94 }
+1 -1
kernel/trace/trace_output.c
··· 264 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 269 unsigned char *p; 270 270