summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-09-17 15:24:36 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-09-17 15:24:36 +0000
commit8c895a22f01a715abd2ff9bdfa6cd03293a44ac0 (patch)
treeb22eb218794d5ef5f83c367c7e8f1503d56a02ac /sys/kern
parentb1152c6bb9a3fc660b72b62d609c33d6029200cb (diff)
clockintr.h: forward-declare "struct cpu_info" for clockintr_establish()
With input from claudio@ and deraadt@.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_clockintr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_clockintr.c b/sys/kern/kern_clockintr.c
index af3a0707f3b..19968890e15 100644
--- a/sys/kern/kern_clockintr.c
+++ b/sys/kern/kern_clockintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_clockintr.c,v 1.55 2023/09/17 15:05:45 cheloha Exp $ */
+/* $OpenBSD: kern_clockintr.c,v 1.56 2023/09/17 15:24:35 cheloha Exp $ */
/*
* Copyright (c) 2003 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -333,10 +333,9 @@ clockintr_cancel(struct clockintr *cl)
}
struct clockintr *
-clockintr_establish(void *vci,
+clockintr_establish(struct cpu_info *ci,
void (*func)(struct clockintr *, void *, void *), void *arg)
{
- struct cpu_info *ci = vci;
struct clockintr *cl;
struct clockintr_queue *cq = &ci->ci_queue;