Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb ddb(4): Declare extern db_active if _KMEMUSER too, n...



details:   https://anonhg.NetBSD.org/src/rev/85ba7ec7c0d2
branches:  trunk
changeset: 372124:85ba7ec7c0d2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Oct 27 20:00:24 2022 +0000

description:
ddb(4): Declare extern db_active if _KMEMUSER too, not just DDB.

crash(8) is built with _KMEMUSER defined but DDB not defined except
for a few specific files or on MIPS.

Seems to me crash(8) should really be built with DDB defined in all
.c files but that leads to other fallout I'm not really inclined to
diagnose right now.

diffstat:

 sys/ddb/db_active.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 66d24ef60288 -r 85ba7ec7c0d2 sys/ddb/db_active.h
--- a/sys/ddb/db_active.h       Thu Oct 27 16:20:23 2022 +0000
+++ b/sys/ddb/db_active.h       Thu Oct 27 20:00:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_active.h,v 1.1 2022/10/26 23:38:09 riastradh Exp $  */
+/*     $NetBSD: db_active.h,v 1.2 2022/10/27 20:00:24 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 
-#ifdef DDB
+#if defined DDB || defined _KMEMUSER
 extern int db_active;
 #else
 static const int db_active __unused = 0;



Home | Main Index | Thread Index | Old Index