|
@@ -514,7 +514,7 @@ unsigned long __init __weak arch_syscall_addr(int nr)
|
|
|
return (unsigned long)sys_call_table[nr];
|
|
|
}
|
|
|
|
|
|
-static int __init init_ftrace_syscalls(void)
|
|
|
+void __init init_ftrace_syscalls(void)
|
|
|
{
|
|
|
struct syscall_metadata *meta;
|
|
|
unsigned long addr;
|
|
@@ -524,7 +524,7 @@ static int __init init_ftrace_syscalls(void)
|
|
|
GFP_KERNEL);
|
|
|
if (!syscalls_metadata) {
|
|
|
WARN_ON(1);
|
|
|
- return -ENOMEM;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < NR_syscalls; i++) {
|
|
@@ -536,10 +536,7 @@ static int __init init_ftrace_syscalls(void)
|
|
|
meta->syscall_nr = i;
|
|
|
syscalls_metadata[i] = meta;
|
|
|
}
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
-early_initcall(init_ftrace_syscalls);
|
|
|
|
|
|
#ifdef CONFIG_PERF_EVENTS
|
|
|
|