summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2014-06-28 17:36:18 +0000
committerhselasky <hselasky@FreeBSD.org>2014-06-28 17:36:18 +0000
commitc676f789a4def14e6372a7f22f8914be670cb726 (patch)
tree18fba3aca427d54d02ce37f14aa4b01b1f2547fa /sys/pc98
parenteef73a863cdf66ed4838137ce52bfba719ef460c (diff)
downloadFreeBSD-src-c676f789a4def14e6372a7f22f8914be670cb726.zip
FreeBSD-src-c676f789a4def14e6372a7f22f8914be670cb726.tar.gz
Compile fixes:
Remove duplicate "debug_ktr.mask" sysctl definition. Remove now unused variable from "kern_ktr.c". This fixes build of "ktr" which was broken by r267961. Let the default value for "vm_kmem_size_scale" be zero. It is setup after that the sysctl has been initialized from "getenv()" in the "kmeminit()" function to equal the "VM_KMEM_SIZE_MAX" value, if zero. On Sparc64 the "VM_KMEM_SIZE_MAX" macro is not a constant. This fixes build of Sparc64 which was broken by r267961. Add a special macro to dynamically create SYSCTL root nodes, because root nodes have a special parent. This fixes build of existing OFED module and CANBUS module for pc98 which was broken by r267961. Add missing "sysctl.h" includes to get the needed sysctl header file declarations. This is needed after r267961. MFC after: 2 weeks
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/canbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pc98/pc98/canbus.c b/sys/pc98/pc98/canbus.c
index 9619047..daacdbd 100644
--- a/sys/pc98/pc98/canbus.c
+++ b/sys/pc98/pc98/canbus.c
@@ -188,9 +188,8 @@ canbus_attach(device_t dev)
/* Dynamic sysctl tree setup */
sysctl_ctx_init(&sc->canbus_sysctl_ctx);
- canbus_sysctl_tree = SYSCTL_ADD_NODE(&sc->canbus_sysctl_ctx,
- SYSCTL_STATIC_CHILDREN(/* tree top */), OID_AUTO,
- "canbus", CTLFLAG_RD, 0, "CanBe I/O Bus");
+ canbus_sysctl_tree = SYSCTL_ADD_ROOT_NODE(&sc->canbus_sysctl_ctx,
+ OID_AUTO, "canbus", CTLFLAG_RD, 0, "CanBe I/O Bus");
SYSCTL_ADD_INT(&sc->canbus_sysctl_ctx,
SYSCTL_CHILDREN(canbus_sysctl_tree), OID_AUTO, "io_delay_time",
CTLFLAG_RW, &sc->io_delay_time, 0, "CanBe Bus I/O delay time");
OpenPOWER on IntegriCloud