summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2020-09-26 11:59:59 +0000
committeranton <anton@openbsd.org>2020-09-26 11:59:59 +0000
commitb98c20127827127e8f0a7b6f1e02fa36bad9d3a5 (patch)
tree2bd7372499577f5752609dfe5ffcb3c15d119764
parentFix typo in comment. (diff)
downloadwireguard-openbsd-b98c20127827127e8f0a7b6f1e02fa36bad9d3a5.tar.xz
wireguard-openbsd-b98c20127827127e8f0a7b6f1e02fa36bad9d3a5.zip
KCOV_BUF_MAX_NMEMB is defined under _KERNEL in sys/kcov.h but only used
in dev/kcov.c; therefore move it to dev/kcov.c.
-rw-r--r--sys/dev/kcov.c3
-rw-r--r--sys/sys/kcov.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c
index 894c2a8a2cb..3e15c86be87 100644
--- a/sys/dev/kcov.c
+++ b/sys/dev/kcov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.c,v 1.30 2020/09/26 11:58:17 anton Exp $ */
+/* $OpenBSD: kcov.c,v 1.31 2020/09/26 11:59:59 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -29,6 +29,7 @@
#include <uvm/uvm_extern.h>
#define KCOV_BUF_MEMB_SIZE sizeof(uintptr_t)
+#define KCOV_BUF_MAX_NMEMB (256 << 10)
#define KCOV_CMP_CONST 0x1
#define KCOV_CMP_SIZE(x) ((x) << 1)
diff --git a/sys/sys/kcov.h b/sys/sys/kcov.h
index 5457e26a17b..a49995370af 100644
--- a/sys/sys/kcov.h
+++ b/sys/sys/kcov.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.h,v 1.6 2020/08/01 08:40:20 anton Exp $ */
+/* $OpenBSD: kcov.h,v 1.7 2020/09/26 11:59:59 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -39,8 +39,6 @@ struct kio_remote_attach {
#ifdef _KERNEL
-#define KCOV_BUF_MAX_NMEMB (256 << 10)
-
struct proc;
void kcov_exit(struct proc *);