Module Name:    src
Committed By:   ozaki-r
Date:           Mon Aug 19 03:24:38 UTC 2019

Modified Files:
        src/sys/netcan: can.c

Log Message:
can: add missing mowner variables for MBUFTRACE


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/netcan/can.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netcan/can.c
diff -u src/sys/netcan/can.c:1.7 src/sys/netcan/can.c:1.8
--- src/sys/netcan/can.c:1.7	Sat Jul 20 15:34:41 2019
+++ src/sys/netcan/can.c	Mon Aug 19 03:24:38 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: can.c,v 1.7 2019/07/20 15:34:41 bouyer Exp $	*/
+/*	$NetBSD: can.c,v 1.8 2019/08/19 03:24:38 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.7 2019/07/20 15:34:41 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.8 2019/08/19 03:24:38 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -76,6 +76,12 @@ int	can_recvspace = 40 * (1024 + sizeof(
 #endif
 int	canhashsize = CANHASHSIZE;
 
+#ifdef MBUFTRACE
+static struct mowner can_mowner = MOWNER_INIT("can", "");
+static struct mowner can_rx_mowner = MOWNER_INIT("can", "rx");
+static struct mowner can_tx_mowner = MOWNER_INIT("can", "tx");
+#endif
+
 static int can_output(struct mbuf *, struct canpcb *);
 
 static int can_control(struct socket *, u_long, void *, struct ifnet *);

Reply via email to