summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-07-18 01:13:18 +0000
committerrwatson <rwatson@FreeBSD.org>2006-07-18 01:13:18 +0000
commit3f582797ac4997a615e29dfbc443454cf01d5636 (patch)
treee67b1186905da0d53848e7a8fe4f386f7dcc8ff7 /sys/vm
parentc601d0f3196ed073fc1f196e181261c176864584 (diff)
downloadFreeBSD-src-3f582797ac4997a615e29dfbc443454cf01d5636.zip
FreeBSD-src-3f582797ac4997a615e29dfbc443454cf01d5636.tar.gz
Fix build of uma_core.c when DDB is not compiled into the kernel by
making uma_zone_sumstat() ifdef DDB, as it's only used with DDB now. Submitted by: Wolfram Fenske <Wolfram.Fenske at Student.Uni-Magdeburg.DE>
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 96fb8c3..14f9974 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -2768,6 +2768,7 @@ uma_print_zone(uma_zone_t zone)
}
}
+#ifdef DDB
/*
* Generate statistics across both the zone and its per-cpu cache's. Return
* desired statistics if the pointer is non-NULL for that statistic.
@@ -2809,6 +2810,7 @@ uma_zone_sumstat(uma_zone_t z, int *cachefreep, u_int64_t *allocsp,
if (freesp != NULL)
*freesp = frees;
}
+#endif /* DDB */
static int
sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS)
OpenPOWER on IntegriCloud