git: ebc0ceaca16c - main - sys/mount.h: Hoist sys/types.h include

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Mon, 16 Jun 2025 21:37:20 UTC
The branch main has been updated by jrtc27:

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

commit ebc0ceaca16cd276ca6ff1c66142389db8d33840
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-06-16 21:31:56 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-06-16 21:31:56 +0000

    sys/mount.h: Hoist sys/types.h include
    
    This header uses various types that come from here regardless of whether
    _KERNEL is defined, so unconditionally include it rather than relying on
    other headers implicitly including it for when _KERNEL is not defined.
    
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D50884
---
 sys/sys/mount.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 66822a5aadc2..d3ab6d7c9cae 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -32,10 +32,10 @@
 #ifndef _SYS_MOUNT_H_
 #define _SYS_MOUNT_H_
 
+#include <sys/types.h>
 #include <sys/ucred.h>
 #include <sys/queue.h>
 #ifdef _KERNEL
-#include <sys/types.h>
 #include <sys/lock.h>
 #include <sys/lockmgr.h>
 #include <sys/tslog.h>