Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Move the compile-time assert outside ...
details: https://anonhg.NetBSD.org/src/rev/883d05a50a71
branches: trunk
changeset: 938994:883d05a50a71
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Sep 23 00:52:49 2020 +0000
description:
Move the compile-time assert outside of the __MUTEX_PRIVATE guard.
diffstat:
sys/arch/alpha/include/mutex.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 331a152839fc -r 883d05a50a71 sys/arch/alpha/include/mutex.h
--- a/sys/arch/alpha/include/mutex.h Wed Sep 23 00:51:59 2020 +0000
+++ b/sys/arch/alpha/include/mutex.h Wed Sep 23 00:52:49 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.7 2020/09/23 00:51:59 thorpej Exp $ */
+/* $NetBSD: mutex.h,v 1.8 2020/09/23 00:52:49 thorpej Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007 The NetBSD Foundation, Inc.
@@ -52,8 +52,6 @@
} u;
};
-__CTASSERT(sizeof(struct kmutex) == sizeof(uintptr_t));
-
#define mtx_owner u.mtxa_owner
#define mtx_flags u.s.mtxs_flags
#define mtx_ipl u.s.mtxs_ipl
@@ -68,4 +66,6 @@
#endif /* __MUTEX_PRIVATE */
+__CTASSERT(sizeof(struct kmutex) == sizeof(uintptr_t));
+
#endif /* _ALPHA_MUTEX_H_ */
Home |
Main Index |
Thread Index |
Old Index