History

constify path argument of trace_seq_path()

Al Viro committed 14 years ago

Commit 38eff281 parent 66b3fad2 files · +3 −3Browse files

Unified · Split

2 files
  1. include/linux/trace_seq.h +2 −2
  2. kernel/trace/trace_output.c +1 −1
include/linux/trace_seq.h+2−2
@@ -44,7 +44,7 @@ extern int trace_seq_putmem(struct trace_seq *s, const void *mem, size_t len); · 43 unmodified lines
4444 extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
4545 size_t len);
4646 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);
4848
4949 #else /* CONFIG_TRACING */
5050 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) · 37 unmodified lines
8888 {
8989 return NULL;
9090 }
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)
9292 {
9393 return 0;
9494 }
kernel/trace/trace_output.c+1−1
@@ -264,7 +264,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len) · 263 unmodified lines
264264 return ret;
265265 }
266266
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)
268268 {
269269 unsigned char *p;
270270

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t