aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-11-24 17:41:57 +0000
committerWarner Losh <imp@FreeBSD.org>2021-12-06 15:55:59 +0000
commitef4b102cb9ccaf915d9362b5d7b99e3e542b764b (patch)
tree094e5f330ee641e33cf48b8c4ed0566d3acdaf74
parentdbaeb2ac322b31e0219eb9714d70c5b8cf8e858a (diff)
downloadsrc-ef4b102cb9ccaf915d9362b5d7b99e3e542b764b.tar.gz
src-ef4b102cb9ccaf915d9362b5d7b99e3e542b764b.zip
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)
-rw-r--r--sys/sys/disk/apm.h2
-rw-r--r--sys/sys/disk/bsd.h2
-rw-r--r--sys/sys/disk/gpt.h2
-rw-r--r--sys/sys/disk/mbr.h2
-rw-r--r--sys/sys/disk/vtoc.h2
5 files changed, 10 insertions, 0 deletions
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