From e329e330d4d97dd8986809fc6a08feddc7e83067 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 17 Apr 2017 21:51:26 +0000 Subject: [PATCH] Move declarations for a machine-dependent function to the header file. --- sys/amd64/amd64/bpf_jit_machdep.c | 2 -- sys/i386/i386/bpf_jit_machdep.c | 2 -- sys/net/bpf_jitter.h | 7 +++++++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/bpf_jit_machdep.c b/sys/amd64/amd64/bpf_jit_machdep.c index f199c80b292..e8232813b8f 100644 --- a/sys/amd64/amd64/bpf_jit_machdep.c +++ b/sys/amd64/amd64/bpf_jit_machdep.c @@ -55,8 +55,6 @@ __FBSDID("$FreeBSD$"); #include -bpf_filter_func bpf_jit_compile(struct bpf_insn *, u_int, size_t *); - /* * Emit routine to update the jump table. */ diff --git a/sys/i386/i386/bpf_jit_machdep.c b/sys/i386/i386/bpf_jit_machdep.c index f00eb24ed6f..67a13cc6c2d 100644 --- a/sys/i386/i386/bpf_jit_machdep.c +++ b/sys/i386/i386/bpf_jit_machdep.c @@ -55,8 +55,6 @@ __FBSDID("$FreeBSD$"); #include -bpf_filter_func bpf_jit_compile(struct bpf_insn *, u_int, size_t *); - /* * Emit routine to update the jump table. */ diff --git a/sys/net/bpf_jitter.h b/sys/net/bpf_jitter.h index 90a1ff5fbb0..88a349df97e 100644 --- a/sys/net/bpf_jitter.h +++ b/sys/net/bpf_jitter.h @@ -80,4 +80,11 @@ bpf_jit_filter *bpf_jitter(struct bpf_insn *fp, int nins); */ void bpf_destroy_jit_filter(bpf_jit_filter *filter); +/* + * Declarations for machine-dependent functions. + */ +struct bpf_insn; + +bpf_filter_func bpf_jit_compile(struct bpf_insn *, u_int, size_t *); + #endif /* _NET_BPF_JITTER_H_ */