[RFC,1/5] tap: move forward declaration of bpf_load
Checks
Commit Message
The local function bpf_load forward declaration should
be in the one file using it.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/tap/tap_bpf.h | 3 ---
drivers/net/tap/tap_bpf_api.c | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
@@ -115,7 +115,4 @@ enum {
BPF_MAP_ID_SIMPLE,
};
-static int bpf_load(enum bpf_prog_type type, const struct bpf_insn *insns,
- size_t insns_cnt, const char *license);
-
#endif /* __TAP_BPF_H__ */
@@ -15,6 +15,9 @@
#include <tap_bpf.h>
#include <tap_bpf_insns.h>
+static int bpf_load(enum bpf_prog_type type, const struct bpf_insn *insns,
+ size_t insns_cnt, const char *license);
+
/**
* Load BPF program (section cls_q) into the kernel and return a bpf fd
*