git: a05fd142318a - stable/12 - sys/disk/*.h: Include sys/types.h

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 15:55:22 UTC
The branch stable/12 has been updated by imp:

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

commit a05fd142318a5e8200a23a3aa28575b4f7b01a58
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-11-24 17:41:57 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-06 15:54:10 +0000

    sys/disk/*.h: Include sys/types.h
    
    All these files use types defined by sys/types.h. Add an include of it
    at the top to make them standalone.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit fde1edaae7f05f753f3d0787744bcb466b634e7b)
---
 sys/sys/disk/apm.h  | 2 ++
 sys/sys/disk/bsd.h  | 2 ++
 sys/sys/disk/gpt.h  | 2 ++
 sys/sys/disk/mbr.h  | 2 ++
 sys/sys/disk/vtoc.h | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/sys/sys/disk/apm.h b/sys/sys/disk/apm.h
index a9183b5e3aa7..1cf64a53b81a 100644
--- a/sys/sys/disk/apm.h
+++ b/sys/sys/disk/apm.h
@@ -29,6 +29,8 @@
 #ifndef _SYS_DISK_APM_H_
 #define	_SYS_DISK_APM_H_
 
+#include <sys/types.h>
+
 /* Driver Descriptor Record. */
 struct apm_ddr {
 	uint16_t	ddr_sig;
diff --git a/sys/sys/disk/bsd.h b/sys/sys/disk/bsd.h
index 6b1e55ce6545..3e627db09099 100644
--- a/sys/sys/disk/bsd.h
+++ b/sys/sys/disk/bsd.h
@@ -33,6 +33,8 @@
 #ifndef _SYS_DISK_BSD_H_
 #define	_SYS_DISK_BSD_H_
 
+#include <sys/types.h>
+
 /* The disk magic number */
 #define BSD_MAGIC		0x82564557U
 
diff --git a/sys/sys/disk/gpt.h b/sys/sys/disk/gpt.h
index ce38a1d1036a..69e9e9b92429 100644
--- a/sys/sys/disk/gpt.h
+++ b/sys/sys/disk/gpt.h
@@ -29,6 +29,8 @@
 #ifndef _SYS_DISK_GPT_H_
 #define	_SYS_DISK_GPT_H_
 
+#include <sys/types.h>
+
 /*
  * Applications can define GPT_UUID_TYPE if they want the GPT structures
  * to use a particular type definition for UUIDs/GUIDs.  This header uses
diff --git a/sys/sys/disk/mbr.h b/sys/sys/disk/mbr.h
index 2d7c07b6271b..60b8d238ac06 100644
--- a/sys/sys/disk/mbr.h
+++ b/sys/sys/disk/mbr.h
@@ -33,6 +33,8 @@
 #ifndef _SYS_DISK_MBR_H_
 #define	_SYS_DISK_MBR_H_
 
+#include <sys/types.h>
+
 #define	DOSBBSECTOR	0	/* DOS boot block relative sector number */
 #define	DOSDSNOFF	440	/* WinNT/2K/XP Drive Serial Number offset */
 #define	DOSPARTOFF	446
diff --git a/sys/sys/disk/vtoc.h b/sys/sys/disk/vtoc.h
index c784d92717cf..c8e6e86268e4 100644
--- a/sys/sys/disk/vtoc.h
+++ b/sys/sys/disk/vtoc.h
@@ -29,6 +29,8 @@
 #ifndef _SYS_DISK_VTOC_H_
 #define	_SYS_DISK_VTOC_H_
 
+#include <sys/types.h>
+
 #define	VTOC_TAG_UNASSIGNED	0x00
 #define	VTOC_TAG_BOOT		0x01
 #define	VTOC_TAG_ROOT		0x02