From 282798604415ffbcc63eade7a4ad5d9297f3706e Mon Sep 17 00:00:00 2001 From: riastradh Date: Sun, 24 Jul 2022 20:28:32 +0000 Subject: [PATCH] aarch64/lock.h: Need for _HARDKERNEL. Add include guard while here. XXX Why does this aarch64-specific file have #ifdef __aarch64__? --- sys/arch/aarch64/include/lock.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/arch/aarch64/include/lock.h b/sys/arch/aarch64/include/lock.h index 44e9082b6cb9..231dc0ba0a60 100644 --- a/sys/arch/aarch64/include/lock.h +++ b/sys/arch/aarch64/include/lock.h @@ -1,4 +1,9 @@ -/* $NetBSD: lock.h,v 1.4 2021/09/26 20:15:04 jmcneill Exp $ */ +/* $NetBSD: lock.h,v 1.5 2022/07/24 20:28:32 riastradh Exp $ */ + +#ifndef _AARCH64_LOCK_H_ +#define _AARCH64_LOCK_H_ + +#include #ifdef __aarch64__ # ifdef _HARDKERNEL @@ -11,3 +16,5 @@ #elif defined(__arm__) # include #endif + +#endif /* _AARCH64_LOCK_H_ */