Module Name:    src
Committed By:   pgoyette
Date:           Fri Apr 28 03:46:57 UTC 2017

Modified Files:
        src/sys/net [prg-localcount2]: if_tun.c

Log Message:
Add a localcount to the devsw so it can be loaded as a rump module


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.138.4.1 src/sys/net/if_tun.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/net/if_tun.c
diff -u src/sys/net/if_tun.c:1.138 src/sys/net/if_tun.c:1.138.4.1
--- src/sys/net/if_tun.c:1.138	Sun Jan 29 18:30:33 2017
+++ src/sys/net/if_tun.c	Fri Apr 28 03:46:57 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $	*/
+/*	$NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $	*/
 
 /*
  * Copyright (c) 1988, Julian Onions <j...@cs.nott.ac.uk>
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -35,6 +35,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1
 #include <sys/ioctl.h>
 #include <sys/kauth.h>
 #include <sys/kmem.h>
+#include <sys/localcount.h>
 #include <sys/lwp.h>
 #include <sys/mbuf.h>
 #include <sys/module.h>
@@ -98,6 +99,7 @@ static dev_type_poll(tunpoll);
 static dev_type_kqfilter(tunkqfilter);
 
 const struct cdevsw tun_cdevsw = {
+	DEVSW_MODULE_INIT
 	.d_open = tunopen,
 	.d_close = tunclose,
 	.d_read = tunread,

Reply via email to