Module Name: src
Committed By: riastradh
Date: Sat Feb 12 02:40:48 UTC 2022
Modified Files:
src/sys/dev: veriexec.c
Log Message:
veriexec(4): Omit needless device crud in veriexec.c.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/veriexec.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/dev/veriexec.c
diff -u src/sys/dev/veriexec.c:1.2 src/sys/dev/veriexec.c:1.3
--- src/sys/dev/veriexec.c:1.2 Mon Jun 21 03:11:05 2021
+++ src/sys/dev/veriexec.c Sat Feb 12 02:40:48 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: veriexec.c,v 1.2 2021/06/21 03:11:05 christos Exp $ */
+/* $NetBSD: veriexec.c,v 1.3 2022/02/12 02:40:48 riastradh Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <[email protected]>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: veriexec.c,v 1.2 2021/06/21 03:11:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: veriexec.c,v 1.3 2022/02/12 02:40:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -43,8 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: veriexec.c,v
#include <sys/proc.h>
#include <sys/ioctl.h>
-#include <sys/device.h>
-#define DEVPORT_DEVICE struct device
+#include <sys/device_if.h>
#include <prop/proplib.h>
@@ -53,10 +52,6 @@ static dev_type_open(veriexecopen);
static dev_type_close(veriexecclose);
static dev_type_ioctl(veriexecioctl);
-struct veriexec_softc {
- DEVPORT_DEVICE veriexec_dev;
-};
-
const struct cdevsw veriexec_cdevsw = {
.d_open = veriexecopen,
.d_close = veriexecclose,
@@ -76,7 +71,7 @@ const struct cdevsw veriexec_cdevsw = {
static unsigned int veriexec_dev_usage = 0;
void
-veriexecattach(DEVPORT_DEVICE *parent, DEVPORT_DEVICE *self, void *aux)
+veriexecattach(device_t parent, device_t self, void *aux)
{
veriexec_dev_usage = 0;
}