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
44extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,44extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
45 size_t len);45 size_t len);
46extern void *trace_seq_reserve(struct trace_seq *s, size_t len);46extern void *trace_seq_reserve(struct trace_seq *s, size_t len);
47extern int trace_seq_path(struct trace_seq *s, struct path *path);47extern int trace_seq_path(struct trace_seq *s, const struct path *path);
48 48
49#else /* CONFIG_TRACING */49#else /* CONFIG_TRACING */
50static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)50static 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
88{88{
89 return NULL;89 return NULL;
90}90}
91static inline int trace_seq_path(struct trace_seq *s, struct path *path)91static inline int trace_seq_path(struct trace_seq *s, const struct path *path)
92{92{
93 return 0;93 return 0;
94}94}
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
264 return ret;264 return ret;
265}265}
266 266
267int trace_seq_path(struct trace_seq *s, struct path *path)267int trace_seq_path(struct trace_seq *s, const struct path *path)
268{268{
269 unsigned char *p;269 unsigned char *p;
270 270

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