Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2023 13:57:15 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f824b9115e58 - stable/13 - atomic: Remove cdefs.h includes from atomic_*.h
Message-ID:  <202301231357.30NDvFEq000693@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

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

commit f824b9115e58d4bb1177e28dcd52f6c8a9cdf383
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-01-16 13:03:20 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-01-23 13:50:41 +0000

    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
    
    (cherry picked from commit f7e2f98bffdafff65012fb02ad838c30b7e3502f)
---
 sys/sys/atomic_common.h | 1 -
 sys/sys/atomic_san.h    | 1 -
 2 files changed, 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)				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301231357.30NDvFEq000693>