Skip to content

Commit 01e3e71

Browse files
David Sharprostedt
authored andcommitted
tracing: Trivial cleanup
Remove ftrace_format_syscall() declaration; it is neither defined nor used. Also update a comment and formatting. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: David Sharp <[email protected]> Signed-off-by: Vaibhav Nagarnaik <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
1 parent 7ffbd48 commit 01e3e71

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/trace/syscall.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ extern int reg_event_syscall_enter(struct ftrace_event_call *call);
3939
extern void unreg_event_syscall_enter(struct ftrace_event_call *call);
4040
extern int reg_event_syscall_exit(struct ftrace_event_call *call);
4141
extern void unreg_event_syscall_exit(struct ftrace_event_call *call);
42-
extern int
43-
ftrace_format_syscall(struct ftrace_event_call *call, struct trace_seq *s);
4442
enum print_line_t print_syscall_enter(struct trace_iterator *iter, int flags,
4543
struct trace_event *event);
4644
enum print_line_t print_syscall_exit(struct trace_iterator *iter, int flags,

kernel/trace/ring_buffer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ rb_add_time_stamp(struct ring_buffer_event *event, u64 delta)
18211821
}
18221822

18231823
/**
1824-
* ring_buffer_update_event - update event type and data
1824+
* rb_update_event - update event type and data
18251825
* @event: the even to update
18261826
* @type: the type of event
18271827
* @length: the size of the event field in the ring buffer
@@ -2723,8 +2723,8 @@ EXPORT_SYMBOL_GPL(ring_buffer_discard_commit);
27232723
* and not the length of the event which would hold the header.
27242724
*/
27252725
int ring_buffer_write(struct ring_buffer *buffer,
2726-
unsigned long length,
2727-
void *data)
2726+
unsigned long length,
2727+
void *data)
27282728
{
27292729
struct ring_buffer_per_cpu *cpu_buffer;
27302730
struct ring_buffer_event *event;

0 commit comments

Comments
 (0)