@@ -77,7 +77,7 @@ static struct syscall_metadata *syscall_nr_to_meta(int nr)
77
77
return syscalls_metadata [nr ];
78
78
}
79
79
80
- enum print_line_t
80
+ static enum print_line_t
81
81
print_syscall_enter (struct trace_iterator * iter , int flags ,
82
82
struct trace_event * event )
83
83
{
@@ -130,7 +130,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags,
130
130
return TRACE_TYPE_HANDLED ;
131
131
}
132
132
133
- enum print_line_t
133
+ static enum print_line_t
134
134
print_syscall_exit (struct trace_iterator * iter , int flags ,
135
135
struct trace_event * event )
136
136
{
@@ -270,7 +270,7 @@ static int syscall_exit_define_fields(struct ftrace_event_call *call)
270
270
return ret ;
271
271
}
272
272
273
- void ftrace_syscall_enter (void * ignore , struct pt_regs * regs , long id )
273
+ static void ftrace_syscall_enter (void * ignore , struct pt_regs * regs , long id )
274
274
{
275
275
struct syscall_trace_enter * entry ;
276
276
struct syscall_metadata * sys_data ;
@@ -305,7 +305,7 @@ void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id)
305
305
trace_current_buffer_unlock_commit (buffer , event , 0 , 0 );
306
306
}
307
307
308
- void ftrace_syscall_exit (void * ignore , struct pt_regs * regs , long ret )
308
+ static void ftrace_syscall_exit (void * ignore , struct pt_regs * regs , long ret )
309
309
{
310
310
struct syscall_trace_exit * entry ;
311
311
struct syscall_metadata * sys_data ;
@@ -337,7 +337,7 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
337
337
trace_current_buffer_unlock_commit (buffer , event , 0 , 0 );
338
338
}
339
339
340
- int reg_event_syscall_enter (struct ftrace_event_call * call )
340
+ static int reg_event_syscall_enter (struct ftrace_event_call * call )
341
341
{
342
342
int ret = 0 ;
343
343
int num ;
@@ -356,7 +356,7 @@ int reg_event_syscall_enter(struct ftrace_event_call *call)
356
356
return ret ;
357
357
}
358
358
359
- void unreg_event_syscall_enter (struct ftrace_event_call * call )
359
+ static void unreg_event_syscall_enter (struct ftrace_event_call * call )
360
360
{
361
361
int num ;
362
362
@@ -371,7 +371,7 @@ void unreg_event_syscall_enter(struct ftrace_event_call *call)
371
371
mutex_unlock (& syscall_trace_lock );
372
372
}
373
373
374
- int reg_event_syscall_exit (struct ftrace_event_call * call )
374
+ static int reg_event_syscall_exit (struct ftrace_event_call * call )
375
375
{
376
376
int ret = 0 ;
377
377
int num ;
@@ -390,7 +390,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call)
390
390
return ret ;
391
391
}
392
392
393
- void unreg_event_syscall_exit (struct ftrace_event_call * call )
393
+ static void unreg_event_syscall_exit (struct ftrace_event_call * call )
394
394
{
395
395
int num ;
396
396
@@ -459,7 +459,7 @@ unsigned long __init __weak arch_syscall_addr(int nr)
459
459
return (unsigned long )sys_call_table [nr ];
460
460
}
461
461
462
- int __init init_ftrace_syscalls (void )
462
+ static int __init init_ftrace_syscalls (void )
463
463
{
464
464
struct syscall_metadata * meta ;
465
465
unsigned long addr ;
0 commit comments