Skip to content

Commit 1438019

Browse files
Jakub Kicinskiborkmann
authored andcommitted
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 <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 1ee6400 commit 1438019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/bpf_verifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static inline struct bpf_reg_state *cur_regs(struct bpf_verifier_env *env)
171171
#if defined(CONFIG_NET) && defined(CONFIG_BPF_SYSCALL)
172172
int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env);
173173
#else
174-
int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env)
174+
static inline int bpf_prog_offload_verifier_prep(struct bpf_verifier_env *env)
175175
{
176176
return -EOPNOTSUPP;
177177
}

0 commit comments

Comments
 (0)