git: b3c44b6bb188 - stable/13 - atomic: Make atomic_san.h self-contained
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Jan 2023 13:57:13 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b3c44b6bb188ca0e6e05ec992271944e516990ae commit b3c44b6bb188ca0e6e05ec992271944e516990ae Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-01-04 02:47:52 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-01-23 13:50:13 +0000 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 (cherry picked from commit 6ebd8466af2a33d88f491799287035aa0477a5c8) --- sys/sys/atomic_san.h | 3 +++ 1 file changed, 3 insertions(+) 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); \