Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/lagg Make this compile without DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/347801b425fc
branches:  trunk
changeset: 379193:347801b425fc
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue May 18 11:02:58 2021 +0000

description:
Make this compile without DIAGNOSTIC.

diffstat:

 sys/net/lagg/if_lagg_lacp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0dc1610b52be -r 347801b425fc sys/net/lagg/if_lagg_lacp.c
--- a/sys/net/lagg/if_lagg_lacp.c       Tue May 18 08:59:44 2021 +0000
+++ b/sys/net/lagg/if_lagg_lacp.c       Tue May 18 11:02:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg_lacp.c,v 1.1 2021/05/17 04:07:43 yamaguchi Exp $       */
+/*     $NetBSD: if_lagg_lacp.c,v 1.2 2021/05/18 11:02:58 hannken Exp $ */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.1 2021/05/17 04:07:43 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.2 2021/05/18 11:02:58 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lagg.h"
@@ -504,7 +504,7 @@ void
 lacp_detach(struct lagg_proto_softc *xlsc)
 {
        struct lacp_softc *lsc = (struct lacp_softc *)xlsc;
-       struct lagg_softc *sc = lsc->lsc_softc;
+       struct lagg_softc *sc __diagused = lsc->lsc_softc;
 
        KASSERT(LAGG_LOCKED(lsc->lsc_softc));
        KASSERT(TAILQ_EMPTY(&lsc->lsc_aggregators));
@@ -2149,7 +2149,7 @@ lacp_set_mux(struct lacp_softc *lsc, str
 static void
 lacp_sm_mux(struct lacp_softc *lsc, struct lacp_port *lacpp)
 {
-       struct lacp_aggregator *la;
+       struct lacp_aggregator *la __diagused;
        enum lacp_mux_state  next_state;
        enum lacp_selected selected;
        bool p_sync, p_collecting;



Home | Main Index | Thread Index | Old Index