Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/prg-localcount2]: src/sys/net/npf The npf device may be loaded as a (rum...
details: https://anonhg.NetBSD.org/src/rev/39a5a07cf40c
branches: prg-localcount2
changeset: 823515:39a5a07cf40c
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Apr 28 02:13:19 2017 +0000
description:
The npf device may be loaded as a (rump) module, so make sure we have a
localcount in its devsw
diffstat:
sys/net/npf/npf_os.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 39d3aa43c2ec -r 39a5a07cf40c sys/net/npf/npf_os.c
--- a/sys/net/npf/npf_os.c Fri Apr 28 01:49:38 2017 +0000
+++ b/sys/net/npf/npf_os.c Fri Apr 28 02:13:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_os.c,v 1.6 2017/01/27 17:25:34 ryo Exp $ */
+/* $NetBSD: npf_os.c,v 1.6.6.1 2017/04/28 02:13:19 pgoyette Exp $ */
/*-
* Copyright (c) 2009-2016 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_os.c,v 1.6 2017/01/27 17:25:34 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_os.c,v 1.6.6.1 2017/04/28 02:13:19 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "pf.h"
@@ -50,6 +50,7 @@
#include <sys/conf.h>
#include <sys/kauth.h>
#include <sys/kmem.h>
+#include <sys/localcount.h>
#include <sys/lwp.h>
#include <sys/module.h>
#include <sys/socketvar.h>
@@ -92,6 +93,7 @@
static int npf_dev_read(dev_t, struct uio *, int);
const struct cdevsw npf_cdevsw = {
+ DEVSW_MODULE_INIT
.d_open = npf_dev_open,
.d_close = npf_dev_close,
.d_read = npf_dev_read,
Home |
Main Index |
Thread Index |
Old Index