diff options
Diffstat (limited to 'kernel/bpf/core.c')
| -rw-r--r-- | kernel/bpf/core.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index a64e7a207d2b..4139a0f8b558 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c | |||
| @@ -656,6 +656,14 @@ void bpf_prog_free(struct bpf_prog *fp) | |||
| 656 | } | 656 | } | 
| 657 | EXPORT_SYMBOL_GPL(bpf_prog_free); | 657 | EXPORT_SYMBOL_GPL(bpf_prog_free); | 
| 658 | 658 | ||
| 659 | /* Weak definitions of helper functions in case we don't have bpf syscall. */ | ||
| 660 | const struct bpf_func_proto bpf_map_lookup_elem_proto __weak; | ||
| 661 | const struct bpf_func_proto bpf_map_update_elem_proto __weak; | ||
| 662 | const struct bpf_func_proto bpf_map_delete_elem_proto __weak; | ||
| 663 | |||
| 664 | const struct bpf_func_proto bpf_get_prandom_u32_proto __weak; | ||
| 665 | const struct bpf_func_proto bpf_get_smp_processor_id_proto __weak; | ||
| 666 | |||
| 659 | /* To execute LD_ABS/LD_IND instructions __bpf_prog_run() may call | 667 | /* To execute LD_ABS/LD_IND instructions __bpf_prog_run() may call | 
| 660 | * skb_copy_bits(), so provide a weak definition of it for NET-less config. | 668 | * skb_copy_bits(), so provide a weak definition of it for NET-less config. | 
| 661 | */ | 669 | */ | 
