aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-01-04 02:47:52 +0000
committerMark Johnston <markj@FreeBSD.org>2023-01-04 15:43:01 +0000
commit6ebd8466af2a33d88f491799287035aa0477a5c8 (patch)
tree7b513282c5ac8c6bb96749462671f60914821999
parente898a3af97f97f74c0fb22032bbd163f7cc92a05 (diff)
downloadsrc-6ebd8466af2a33d88f491799287035aa0477a5c8.tar.gz
src-6ebd8466af2a33d88f491799287035aa0477a5c8.zip
atomic: Make atomic_san.h self-contained
This file assumes that uint*_t and __typeof() are defined, so ensure that consumers don't have to pull in the requisite includes themselves. This is consistent with sys/atomic_common.h. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37939
-rw-r--r--sys/sys/atomic_san.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/atomic_san.h b/sys/sys/atomic_san.h
index 1f7d615ebd11..9ceea2988db2 100644
--- a/sys/sys/atomic_san.h
+++ b/sys/sys/atomic_san.h
@@ -43,6 +43,9 @@
#error do not include this header, use machine/atomic.h
#endif
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
#define ATOMIC_SAN_FUNC_1(sp, op, name, type) \
void sp##_atomic_##op##_##name(volatile type *, type); \
void sp##_atomic_##op##_acq_##name(volatile type *, type); \