diff options
Diffstat (limited to 'kernel/bpf/cgroup.c')
-rw-r--r-- | kernel/bpf/cgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index c1c0b60d3f2f..8730b24ed540 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c | |||
@@ -545,7 +545,7 @@ int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor, | |||
545 | EXPORT_SYMBOL(__cgroup_bpf_check_dev_permission); | 545 | EXPORT_SYMBOL(__cgroup_bpf_check_dev_permission); |
546 | 546 | ||
547 | static const struct bpf_func_proto * | 547 | static const struct bpf_func_proto * |
548 | cgroup_dev_func_proto(enum bpf_func_id func_id) | 548 | cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) |
549 | { | 549 | { |
550 | switch (func_id) { | 550 | switch (func_id) { |
551 | case BPF_FUNC_map_lookup_elem: | 551 | case BPF_FUNC_map_lookup_elem: |
@@ -566,6 +566,7 @@ cgroup_dev_func_proto(enum bpf_func_id func_id) | |||
566 | 566 | ||
567 | static bool cgroup_dev_is_valid_access(int off, int size, | 567 | static bool cgroup_dev_is_valid_access(int off, int size, |
568 | enum bpf_access_type type, | 568 | enum bpf_access_type type, |
569 | const struct bpf_prog *prog, | ||
569 | struct bpf_insn_access_aux *info) | 570 | struct bpf_insn_access_aux *info) |
570 | { | 571 | { |
571 | const int size_default = sizeof(__u32); | 572 | const int size_default = sizeof(__u32); |