git: 8cdb0458e12e - main - syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Dec 2024 14:45:35 UTC
The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=8cdb0458e12e6fac577cfb2277e7e85d3c21fa09 commit 8cdb0458e12e6fac577cfb2277e7e85d3c21fa09 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2024-12-02 15:06:29 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-12-16 14:42:32 +0000 syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort <sys/types.h> is currently brought in by other headers but some of its type definition are directly used in this header, so it should appear explicitly. It is necessary as lots of prototypes in there use types it defines (<sys/_types.h> wouldn't be enough). Sort header inclusions as per style(9). No functional change (intended). Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47881 --- sys/sys/syscallsubr.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index a7f3d2307df1..29b0a455970b 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -28,13 +28,14 @@ #ifndef _SYS_SYSCALLSUBR_H_ #define _SYS_SYSCALLSUBR_H_ -#include <sys/signal.h> -#include <sys/socket.h> -#include <sys/mac.h> -#include <sys/mount.h> +#include <sys/types.h> #include <sys/_cpuset.h> #include <sys/_domainset.h> #include <sys/_uio.h> +#include <sys/mac.h> +#include <sys/mount.h> +#include <sys/signal.h> +#include <sys/socket.h> struct __wrusage; struct cpuset_copy_cb;