Let kernel build when MALLOCLOG is defined but DIAGNOSTIC is not.

Else, hitmlog() is defined but not used, which triggers a warning.
This commit is contained in:
hubertf 2010-01-22 08:32:05 +00:00
parent 73699ad19c
commit 739e259054

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_malloc.c,v 1.127 2009/09/13 18:45:11 pooka Exp $ */
/* $NetBSD: kern_malloc.c,v 1.128 2010/01/22 08:32:05 hubertf Exp $ */
/*
* Copyright (c) 1987, 1991, 1993
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.127 2009/09/13 18:45:11 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.128 2010/01/22 08:32:05 hubertf Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -215,6 +215,7 @@ domlog(void *a, long size, struct malloc_type *type, int action,
malloclogptr = 0;
}
#ifdef DIAGNOSTIC
static void
hitmlog(void *a)
{
@ -271,6 +272,7 @@ hitmlog(void *a)
#undef PRT
}
#endif /* DIAGNOSTIC */
#endif /* MALLOCLOG */
#ifdef DIAGNOSTIC