Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fix kernel build with RT_DEBUG and !NET_MPSAFE



details:   https://anonhg.NetBSD.org/src/rev/e3f653ea04b0
branches:  trunk
changeset: 819869:e3f653ea04b0
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Dec 21 00:33:49 2016 +0000

description:
Fix kernel build with RT_DEBUG and !NET_MPSAFE

diffstat:

 sys/net/route.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9a51f6af9f62 -r e3f653ea04b0 sys/net/route.c
--- a/sys/net/route.c   Tue Dec 20 14:09:09 2016 +0000
+++ b/sys/net/route.c   Wed Dec 21 00:33:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.183 2016/12/12 03:55:57 ozaki-r Exp $      */
+/*     $NetBSD: route.c,v 1.184 2016/12/21 00:33:49 ozaki-r Exp $      */
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.183 2016/12/12 03:55:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.184 2016/12/21 00:33:49 ozaki-r Exp $");
 
 #include <sys/param.h>
 #ifdef RTFLUSH_DEBUG
@@ -1916,7 +1916,7 @@
 
 static struct dom_rtlist invalid_routes = LIST_HEAD_INITIALIZER(dom_rtlist);
 
-#ifdef RT_DEBUG
+#if defined(RT_DEBUG) && defined(NET_MPSAFE)
 static void
 rtcache_trace(const char *func, struct rtentry *rt, struct route *ro)
 {



Home | Main Index | Thread Index | Old Index