mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
constify path argument of trace_seq_path()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
66b3fad3f4
commit
38eff28926
@ -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,
|
extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
|
||||||
size_t len);
|
size_t len);
|
||||||
extern void *trace_seq_reserve(struct trace_seq *s, 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 */
|
#else /* CONFIG_TRACING */
|
||||||
static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
|
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)
|
|||||||
{
|
{
|
||||||
return NULL;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len)
|
|||||||
return ret;
|
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;
|
unsigned char *p;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user