Source-Changes-HG archive

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

[src/trunk]: src/sys/sys sys/lock.h: Need <sys/systm.h> for nullop.



details:   https://anonhg.NetBSD.org/src/rev/45cb3cbda574
branches:  trunk
changeset: 368657:45cb3cbda574
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 24 20:28:39 2022 +0000

description:
sys/lock.h: Need <sys/systm.h> for nullop.

But only do that we're not using SPINLOCK_BACKOFF_HOOK from
<machine/lock.h>.

diffstat:

 sys/sys/lock.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 5dc0f2254a01 -r 45cb3cbda574 sys/sys/lock.h
--- a/sys/sys/lock.h    Sun Jul 24 20:28:32 2022 +0000
+++ b/sys/sys/lock.h    Sun Jul 24 20:28:39 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.91 2020/12/22 01:58:58 ad Exp $     */
+/*     $NetBSD: lock.h,v 1.92 2022/07/24 20:28:39 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1999, 2000, 2006, 2007 The NetBSD Foundation, Inc.
@@ -51,6 +51,7 @@
 #define        SPINLOCK_SPIN_HOOK
 #endif
 #ifndef SPINLOCK_BACKOFF_HOOK
+#include <sys/systm.h>
 #define        SPINLOCK_BACKOFF_HOOK           nullop(NULL)
 #endif
 #ifndef        SPINLOCK_BACKOFF_MIN



Home | Main Index | Thread Index | Old Index