git: fde1edaae7f0 - main - sys/disk/*.h: Include sys/types.h

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 24 Nov 2021 18:27:44 UTC
The branch main has been updated by imp:

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

commit fde1edaae7f05f753f3d0787744bcb466b634e7b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-11-24 17:41:57 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-11-24 18:26:45 +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
---
 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 c68524b9051e..3cb8d8e071e8 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 39b47c4a7386..1241059b02ea 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