]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bpf: make bpf_prog_offload_verifier_prep() static inline
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 20 Nov 2017 23:22:00 +0000 (15:22 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 20 Nov 2017 23:37:35 +0000 (00:37 +0100)
Header implementation of bpf_prog_offload_verifier_prep() which
is used if CONFIG_NET=n should be a static inline.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf_verifier.h

index 07b96aaca2567df8dd3cd6064b861cbd8a961f0e..b61482d354a29a671fa6e14c9631fc3a0f10d801 100644 (file)
@@ -171,7 +171,7 @@ static inline struct bpf_reg_state *cur_regs(struct bpf_verifier_env *env)
 #if defined(CONFIG_NET) && defined(CONFIG_BPF_SYSCALL)
 int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env);
 #else
-int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env)
+static inline int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env)
 {
        return -EOPNOTSUPP;
 }