From owner-svn-src-all@freebsd.org Fri Dec 11 22:52:09 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 595A74BD9D3; Fri, 11 Dec 2020 22:52:09 +0000 (UTC) (envelope-from rlibby@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ct5dM4HPpz3H6Q; Fri, 11 Dec 2020 22:52:07 +0000 (UTC) (envelope-from rlibby@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 83E3E12CA8; Fri, 11 Dec 2020 22:52:04 +0000 (UTC) (envelope-from rlibby@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BBMq41f032030; Fri, 11 Dec 2020 22:52:04 GMT (envelope-from rlibby@FreeBSD.org) Received: (from rlibby@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BBMq3AP032027; Fri, 11 Dec 2020 22:52:03 GMT (envelope-from rlibby@FreeBSD.org) Message-Id: <202012112252.0BBMq3AP032027@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rlibby set sender to rlibby@FreeBSD.org using -f From: Ryan Libby Date: Fri, 11 Dec 2020 22:52:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r368566 - in head/sys: dev/if_wg/include/sys dev/if_wg/module modules/if_wg X-SVN-Group: head X-SVN-Commit-Author: rlibby X-SVN-Commit-Paths: in head/sys: dev/if_wg/include/sys dev/if_wg/module modules/if_wg X-SVN-Commit-Revision: 368566 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2020 22:52:09 -0000 Author: rlibby Date: Fri Dec 11 22:52:03 2020 New Revision: 368566 URL: https://svnweb.freebsd.org/changeset/base/368566 Log: 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 Modified: head/sys/dev/if_wg/include/sys/if_wg_session_vars.h head/sys/dev/if_wg/include/sys/wg_module.h head/sys/dev/if_wg/module/if_wg_session.c head/sys/modules/if_wg/Makefile Modified: head/sys/dev/if_wg/include/sys/if_wg_session_vars.h ============================================================================== --- head/sys/dev/if_wg/include/sys/if_wg_session_vars.h Fri Dec 11 22:51:57 2020 (r368565) +++ head/sys/dev/if_wg/include/sys/if_wg_session_vars.h Fri Dec 11 22:52:03 2020 (r368566) @@ -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); Modified: head/sys/dev/if_wg/include/sys/wg_module.h ============================================================================== --- head/sys/dev/if_wg/include/sys/wg_module.h Fri Dec 11 22:51:57 2020 (r368565) +++ head/sys/dev/if_wg/include/sys/wg_module.h Fri Dec 11 22:52:03 2020 (r368566) @@ -47,8 +47,6 @@ #include #include -MALLOC_DECLARE(M_WG); - enum noise_lengths { NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE, Modified: head/sys/dev/if_wg/module/if_wg_session.c ============================================================================== --- head/sys/dev/if_wg/module/if_wg_session.c Fri Dec 11 22:51:57 2020 (r368565) +++ head/sys/dev/if_wg/module/if_wg_session.c Fri Dec 11 22:52:03 2020 (r368566) @@ -113,7 +113,6 @@ SYSCTL_INT(_net_wg, OID_AUTO, debug, CTLFLAG_RWTUN, &w #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 *); @@ -145,9 +144,6 @@ static void wg_timers_disable(struct wg_timers *); /* Queue */ 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 */ Modified: head/sys/modules/if_wg/Makefile ============================================================================== --- head/sys/modules/if_wg/Makefile Fri Dec 11 22:51:57 2020 (r368565) +++ head/sys/modules/if_wg/Makefile Fri Dec 11 22:52:03 2020 (r368566) @@ -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