From eb833e87668c2e29e560a558673f37ed802ef6d9 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 20 Jul 2004 23:47:09 +0000 Subject: ifdef DDB a few functions only used (or usable) from DDB. --- sys/kern/subr_pool.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/kern/subr_pool.c') 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: -- cgit v1.2.3