summaryrefslogtreecommitdiff
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2004-07-20 23:47:09 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2004-07-20 23:47:09 +0000
commiteb833e87668c2e29e560a558673f37ed802ef6d9 (patch)
tree18764c51ea93e84bedfe6f51a26317dcdff7b59b /sys/kern/subr_pool.c
parentb0b87d843a4e9621c18225e6a3e5bbdf2136ebee (diff)
ifdef DDB a few functions only used (or usable) from DDB.
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r--sys/kern/subr_pool.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 5c8a37b3a50..56cb0a1d295 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.43 2004/06/24 19:35:24 tholo Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.44 2004/07/20 23:47:08 art Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -171,8 +171,10 @@ int pool_chk_page(struct pool *, const char *, struct pool_item_header *);
void *pool_allocator_alloc(struct pool *, int);
void pool_allocator_free(struct pool *, void *);
+#ifdef DDB
void pool_print_pagelist(struct pool_pagelist *, int (*)(const char *, ...));
void pool_print1(struct pool *, const char *, int (*)(const char *, ...));
+#endif
/*
@@ -1367,6 +1369,7 @@ pool_drain(void *arg)
splx(s);
}
+#ifdef DDB
/*
* Diagnostic helpers.
*/
@@ -1573,6 +1576,7 @@ out:
simple_unlock(&pp->pr_slock);
return (r);
}
+#endif
/*
* pool_cache_init: