From: Jakub Kicinski Date: Mon, 20 Nov 2017 23:22:00 +0000 (-0800) Subject: bpf: make bpf_prog_offload_verifier_prep() static inline X-Git-Tag: v5.15~9919^2~5^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1438019479349d262b76f8767ace3273d11b6dcb;p=platform%2Fkernel%2Flinux-starfive.git bpf: make bpf_prog_offload_verifier_prep() static inline 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 Signed-off-by: Daniel Borkmann --- diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index 07b96aaca256..b61482d354a2 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -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; }