git: afeec66ce393 - stable/13 - syscallsubr.h: Header inclusions: Explicit <sys/param.h>, sort
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jan 2025 12:27:21 UTC
The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=afeec66ce393f6d4e18907934db8f96821e37394 commit afeec66ce393f6d4e18907934db8f96821e37394 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2024-12-02 15:06:29 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2025-01-17 12:24:53 +0000 syscallsubr.h: Header inclusions: Explicit <sys/param.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). Additionally, <sys/_cpuset.h> and <sys/_domainset.h> need constants from <machine/param.h>, so just include <sys/param.h> instead of <sys/types.h>. 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 (cherry picked from commit 8cdb0458e12e6fac577cfb2277e7e85d3c21fa09) --- 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 78de8876e51b..736cd3019453 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/param.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;