Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern re-do previous - it likely broke kmem cache init.



details:   https://anonhg.NetBSD.org/src/rev/54ef56064362
branches:  trunk
changeset: 366570:54ef56064362
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon May 30 23:36:26 2022 +0000

description:
re-do previous - it likely broke kmem cache init.

use {0} for zero sentinel.

diffstat:

 sys/kern/subr_kmem.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r 42f857e54150 -r 54ef56064362 sys/kern/subr_kmem.c
--- a/sys/kern/subr_kmem.c      Mon May 30 23:27:45 2022 +0000
+++ b/sys/kern/subr_kmem.c      Mon May 30 23:36:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_kmem.c,v 1.86 2022/05/30 21:42:02 mrg Exp $       */
+/*     $NetBSD: subr_kmem.c,v 1.87 2022/05/30 23:36:26 mrg Exp $       */
 
 /*
  * Copyright (c) 2009-2020 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.86 2022/05/30 21:42:02 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kmem.c,v 1.87 2022/05/30 23:36:26 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kmem.h"
@@ -184,16 +184,12 @@
 
 static const struct kmem_cache_info kmem_cache_sizes[] = {
        KMEM_CACHE_SIZES(F)
-#ifndef KDTRACE_HOOKS
-       { 0, NULL }
-#endif
+       { 0 }
 };
 
 static const struct kmem_cache_info kmem_cache_big_sizes[] = {
        KMEM_CACHE_BIG_SIZES(F)
-#ifndef KDTRACE_HOOKS
-       { 0, NULL }
-#endif
+       { 0 }
 };
 
 #undef F



Home | Main Index | Thread Index | Old Index