Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include aarch64/lock.h: Need <sys/param.h> ...



details:   https://anonhg.NetBSD.org/src/rev/5dc0f2254a01
branches:  trunk
changeset: 368656:5dc0f2254a01
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 24 20:28:32 2022 +0000

description:
aarch64/lock.h: Need <sys/param.h> for _HARDKERNEL.

Add include guard while here.

XXX Why does this aarch64-specific file have #ifdef __aarch64__?

diffstat:

 sys/arch/aarch64/include/lock.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 19892b71aa49 -r 5dc0f2254a01 sys/arch/aarch64/include/lock.h
--- a/sys/arch/aarch64/include/lock.h   Sun Jul 24 20:25:23 2022 +0000
+++ b/sys/arch/aarch64/include/lock.h   Sun Jul 24 20:28:32 2022 +0000
@@ -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 <sys/param.h>
 
 #ifdef __aarch64__
 # ifdef _HARDKERNEL
@@ -11,3 +16,5 @@
 #elif defined(__arm__)
 # include <arm/lock.h>
 #endif
+
+#endif /* _AARCH64_LOCK_H_ */



Home | Main Index | Thread Index | Old Index