aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-10-27 09:43:19 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2023-11-24 09:49:58 +0000
commit2a35f3cdf63d1f9b1ea5ab0174adabb631757210 (patch)
tree5670174c94fe6dc0941c986e55955f687504fe44
parentb3c116d50ecacaab5236e0488cb74c1bcf614ae7 (diff)
downloadsrc-2a35f3cdf63d1f9b1ea5ab0174adabb631757210.tar.gz
src-2a35f3cdf63d1f9b1ea5ab0174adabb631757210.zip
sys/mutex.h: Include sys/lock.h instead of sys/_lock.h
It uses the LA_ defines when INVARIANTS is set. This unbreak dpaa2 with FDT only kernel (like ALLWINNER or ROCKCHIP) as the driver only include sys/lock.h via header polution for ACPI kernels. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D37145 Reviewed by: kib, mjg
-rw-r--r--sys/sys/mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 56c03a1b0be9..750a5e99679a 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -34,8 +34,8 @@
#define _SYS_MUTEX_H_
#include <sys/queue.h>
-#include <sys/_lock.h>
#include <sys/_mutex.h>
+#include <sys/lock.h>
#ifdef _KERNEL
#include <sys/pcpu.h>