]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/bpf/btf.c
io_uring: make sure accept honor rlimit nofile
[linux.git] / kernel / bpf / btf.c
index 805c43b083e956940b990cede2b3cad0f0e3692a..787140095e58d5d0882a50b32ad30d64dcb89a75 100644 (file)
@@ -4142,9 +4142,9 @@ int btf_distill_func_proto(struct bpf_verifier_log *log,
  * EFAULT - verifier bug
  * 0 - 99% match. The last 1% is validated by the verifier.
  */
-int btf_check_func_type_match(struct bpf_verifier_log *log,
-                             struct btf *btf1, const struct btf_type *t1,
-                             struct btf *btf2, const struct btf_type *t2)
+static int btf_check_func_type_match(struct bpf_verifier_log *log,
+                                    struct btf *btf1, const struct btf_type *t1,
+                                    struct btf *btf2, const struct btf_type *t2)
 {
        const struct btf_param *args1, *args2;
        const char *fn1, *fn2, *s1, *s2;