Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2023 02:22:21 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f0fa40867d1d - main - Fix build on powerpc after previous commit.
Message-ID:  <202311100222.3AA2MLLN048876@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=f0fa40867d1d556ee0400ca6e1483b9ae1a068e2

commit f0fa40867d1d556ee0400ca6e1483b9ae1a068e2
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2023-11-10 02:21:47 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2023-11-10 02:21:47 +0000

    Fix build on powerpc after previous commit.
---
 sys/vm/uma_dbg.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys/vm/uma_dbg.c b/sys/vm/uma_dbg.c
index c256e62875c0..2f6360699419 100644
--- a/sys/vm/uma_dbg.c
+++ b/sys/vm/uma_dbg.c
@@ -165,7 +165,11 @@ dopanic:
 	off = (uintptr_t)p - (uintptr_t)mem;
 	ksp = (struct malloc_type **)mem;
 	ksp += size / sizeof(struct malloc_type *);
-	if (*ksp != NULL && INKERNEL((uintptr_t)*ksp)) {
+	if (*ksp != NULL
+#ifdef INKERNEL
+	    && INKERNEL((uintptr_t)*ksp)
+#endif
+	    ) {
 		/*
 		 * If *ksp is corrupted we may be unable to panic clean,
 		 * so print what we have reliably while we still can.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311100222.3AA2MLLN048876>