diff options
Diffstat (limited to 'kernel/trace/bpf_trace.c')
| -rw-r--r-- | kernel/trace/bpf_trace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index b496ffdf5f36..f92d6ad5e080 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c | |||
| @@ -1297,7 +1297,8 @@ int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id, | |||
| 1297 | } | 1297 | } |
| 1298 | 1298 | ||
| 1299 | #ifdef CONFIG_MODULES | 1299 | #ifdef CONFIG_MODULES |
| 1300 | int bpf_event_notify(struct notifier_block *nb, unsigned long op, void *module) | 1300 | static int bpf_event_notify(struct notifier_block *nb, unsigned long op, |
| 1301 | void *module) | ||
| 1301 | { | 1302 | { |
| 1302 | struct bpf_trace_module *btm, *tmp; | 1303 | struct bpf_trace_module *btm, *tmp; |
| 1303 | struct module *mod = module; | 1304 | struct module *mod = module; |
| @@ -1336,7 +1337,7 @@ static struct notifier_block bpf_module_nb = { | |||
| 1336 | .notifier_call = bpf_event_notify, | 1337 | .notifier_call = bpf_event_notify, |
| 1337 | }; | 1338 | }; |
| 1338 | 1339 | ||
| 1339 | int __init bpf_event_init(void) | 1340 | static int __init bpf_event_init(void) |
| 1340 | { | 1341 | { |
| 1341 | register_module_notifier(&bpf_module_nb); | 1342 | register_module_notifier(&bpf_module_nb); |
| 1342 | return 0; | 1343 | return 0; |
