Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Let kernel build when MALLOCLOG is defined but DIAG...
details: https://anonhg.NetBSD.org/src/rev/1499edb8a9c8
branches: trunk
changeset: 751023:1499edb8a9c8
user: hubertf <hubertf%NetBSD.org@localhost>
date: Fri Jan 22 08:32:05 2010 +0000
description:
Let kernel build when MALLOCLOG is defined but DIAGNOSTIC is not.
Else, hitmlog() is defined but not used, which triggers a warning.
diffstat:
sys/kern/kern_malloc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 401c16de41cf -r 1499edb8a9c8 sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c Fri Jan 22 08:01:49 2010 +0000
+++ b/sys/kern/kern_malloc.c Fri Jan 22 08:32:05 2010 +0000
@@ -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 @@
malloclogptr = 0;
}
+#ifdef DIAGNOSTIC
static void
hitmlog(void *a)
{
@@ -271,6 +272,7 @@
#undef PRT
}
+#endif /* DIAGNOSTIC */
#endif /* MALLOCLOG */
#ifdef DIAGNOSTIC
Home |
Main Index |
Thread Index |
Old Index