Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 24 20:28:39 UTC 2022

Modified Files:
        src/sys/sys: lock.h

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/sys/lock.h

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

Modified files:

Index: src/sys/sys/lock.h
diff -u src/sys/sys/lock.h:1.91 src/sys/sys/lock.h:1.92
--- src/sys/sys/lock.h:1.91	Tue Dec 22 01:58:58 2020
+++ src/sys/sys/lock.h	Sun Jul 24 20:28:39 2022
@@ -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

Reply via email to