aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-01-16 13:03:20 +0000
committerMark Johnston <markj@FreeBSD.org>2023-01-16 13:03:20 +0000
commitf7e2f98bffdafff65012fb02ad838c30b7e3502f (patch)
tree6743115b99e7b87fc8277cd870cbc2fac5bedc3b
parent5c2b216a1cd8de3aabfa9e76ca8f38774acd591e (diff)
downloadsrc-f7e2f98bffdafff65012fb02ad838c30b7e3502f.tar.gz
src-f7e2f98bffdafff65012fb02ad838c30b7e3502f.zip
atomic: Remove cdefs.h includes from atomic_*.h
Avoid including cdefs.h in system headers. Both headers now include types.h, and we can assume that that pulls in cdefs.h (required for __typeof usage in some of the atomic macro expansions). No functional change intended. Reviewed by: imp, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38039
-rw-r--r--sys/sys/atomic_common.h1
-rw-r--r--sys/sys/atomic_san.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/sys/atomic_common.h b/sys/sys/atomic_common.h
index a7b0b50512dc..b7bfa151e8ca 100644
--- a/sys/sys/atomic_common.h
+++ b/sys/sys/atomic_common.h
@@ -36,7 +36,6 @@
#error do not include this header, use machine/atomic.h
#endif
-#include <sys/cdefs.h>
#include <sys/types.h>
#define __atomic_load_bool_relaxed(p) (*(volatile _Bool *)(p))
diff --git a/sys/sys/atomic_san.h b/sys/sys/atomic_san.h
index 9ceea2988db2..beeea82a666b 100644
--- a/sys/sys/atomic_san.h
+++ b/sys/sys/atomic_san.h
@@ -43,7 +43,6 @@
#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) \