if_wg: appease gcc
- remove -ferror-limit option - quiet -Wredundant-decls Reviewed by: mmacy Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D27559
This commit is contained in:
parent
93dba42c0e
commit
75dd118247
@ -274,9 +274,6 @@ struct wg_tag {
|
||||
int t_mtu;
|
||||
};
|
||||
|
||||
int wg_route_add(struct wg_route_table *tbl, struct wg_peer *peer,
|
||||
const struct wg_allowedip *cidr_);
|
||||
|
||||
struct wg_peer *wg_route_lookup(struct wg_route_table *, struct mbuf *,
|
||||
enum route_direction);
|
||||
|
||||
|
@ -47,8 +47,6 @@
|
||||
#include <zinc/chacha20poly1305.h>
|
||||
#include <crypto/blake2s.h>
|
||||
|
||||
MALLOC_DECLARE(M_WG);
|
||||
|
||||
|
||||
enum noise_lengths {
|
||||
NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE,
|
||||
|
@ -113,7 +113,6 @@ SYSCTL_INT(_net_wg, OID_AUTO, debug, CTLFLAG_RWTUN, &wireguard_debug, 0,
|
||||
#define DPRINTF(sc, ...) if (wireguard_debug) if_printf(sc->sc_ifp, ##__VA_ARGS__)
|
||||
|
||||
/* Socket */
|
||||
int wg_socket_close(struct wg_socket *);
|
||||
static int wg_socket_bind(struct wg_softc *sc, struct wg_socket *);
|
||||
static int wg_send(struct wg_softc *, struct wg_endpoint *, struct mbuf *);
|
||||
|
||||
@ -146,9 +145,6 @@ static void wg_timers_disable(struct wg_timers *);
|
||||
static int wg_queue_in(struct wg_peer *, struct mbuf *);
|
||||
static struct mbuf *wg_queue_dequeue(struct wg_queue *, struct wg_tag **);
|
||||
|
||||
/* Route */
|
||||
void wg_route_destroy(struct wg_route_table *);
|
||||
|
||||
/* Cookie */
|
||||
|
||||
static int wg_cookie_validate_packet(struct cookie_checker *, struct mbuf *,
|
||||
|
@ -14,7 +14,6 @@ ZINCDIR= ${SRCTOP}/sys/dev/if_wg/module/crypto/zinc
|
||||
CFLAGS+= -I${INCDIR}
|
||||
|
||||
CFLAGS+= -D__KERNEL__
|
||||
CFLAGS+= -ferror-limit=7
|
||||
|
||||
DEBUG_FLAGS=-g
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user