The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6ebd8466af2a33d88f491799287035aa0477a5c8

commit 6ebd8466af2a33d88f491799287035aa0477a5c8
Author:     Mark Johnston <[email protected]>
AuthorDate: 2023-01-04 02:47:52 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2023-01-04 15:43:01 +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
---
 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);      \

Reply via email to