Module Name:    src
Committed By:   hubertf
Date:           Fri Jan 22 08:32:05 UTC 2010

Modified Files:
        src/sys/kern: kern_malloc.c

Log Message:
Let kernel build when MALLOCLOG is defined but DIAGNOSTIC is not.
Else, hitmlog() is defined but not used, which triggers a warning.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/kern/kern_malloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_malloc.c
diff -u src/sys/kern/kern_malloc.c:1.127 src/sys/kern/kern_malloc.c:1.128
--- src/sys/kern/kern_malloc.c:1.127	Sun Sep 13 18:45:11 2009
+++ src/sys/kern/kern_malloc.c	Fri Jan 22 08:32:05 2010
@@ -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

Reply via email to