Source-Changes-HG archive

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

[src/trunk]: src/sys/net Also take care of non-DIAGNOSTIC case.



details:   https://anonhg.NetBSD.org/src/rev/309f52f94b91
branches:  trunk
changeset: 446666:309f52f94b91
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 13 20:44:33 2018 +0000

description:
Also take care of non-DIAGNOSTIC case.

diffstat:

 sys/net/ether_sw_offload.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r c3489ca7198d -r 309f52f94b91 sys/net/ether_sw_offload.c
--- a/sys/net/ether_sw_offload.c        Thu Dec 13 16:38:26 2018 +0000
+++ b/sys/net/ether_sw_offload.c        Thu Dec 13 20:44:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ether_sw_offload.c,v 1.2 2018/12/13 12:13:33 rin Exp $ */
+/*     $NetBSD: ether_sw_offload.c,v 1.3 2018/12/13 20:44:33 rin Exp $ */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ether_sw_offload.c,v 1.2 2018/12/13 12:13:33 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ether_sw_offload.c,v 1.3 2018/12/13 20:44:33 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -68,7 +68,11 @@
 {
        struct ether_header *ep;
        int flags, ehlen;
+#ifdef INET6
        bool v6;
+#else
+       bool v6 __diagused;
+#endif
 
        KASSERT(m->m_flags & M_PKTHDR);
        flags = m->m_pkthdr.csum_flags;



Home | Main Index | Thread Index | Old Index