Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
38eff289
Commit
38eff289
authored
Mar 14, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify path argument of trace_seq_path()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
66b3fad3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/linux/trace_seq.h
include/linux/trace_seq.h
+2
-2
kernel/trace/trace_output.c
kernel/trace/trace_output.c
+1
-1
No files found.
include/linux/trace_seq.h
View file @
38eff289
...
...
@@ -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
,
...)
...
...
@@ -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
;
}
...
...
kernel/trace/trace_output.c
View file @
38eff289
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment