git: 6d1dfc87416f - main - bhyve: Remove some unneeded includes of segments.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jun 2023 19:54:34 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=6d1dfc87416f451164e79ebdc4a0fb53b001bfd9
commit 6d1dfc87416f451164e79ebdc4a0fb53b001bfd9
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-08 21:24:45 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-19 19:44:44 +0000
bhyve: Remove some unneeded includes of segments.h
They are not needed and are specific to x86. No functional change
intended.
MFC after: 1 week
Sponsored by: Innovate UK
---
usr.sbin/bhyve/inout.c | 1 -
usr.sbin/bhyve/snapshot.c | 1 -
usr.sbin/bhyve/task_switch.c | 1 -
3 files changed, 3 deletions(-)
diff --git a/usr.sbin/bhyve/inout.c b/usr.sbin/bhyve/inout.c
index 2ac6407c0c3d..a743647287d4 100644
--- a/usr.sbin/bhyve/inout.c
+++ b/usr.sbin/bhyve/inout.c
@@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$");
#include <sys/mman.h>
#include <x86/psl.h>
-#include <x86/segments.h>
#include <machine/vmm.h>
#include <machine/vmm_instruction_emul.h>
diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c
index 58ae29782b43..31c5e76cecef 100644
--- a/usr.sbin/bhyve/snapshot.c
+++ b/usr.sbin/bhyve/snapshot.c
@@ -47,7 +47,6 @@ __FBSDID("$FreeBSD$");
#include <sys/un.h>
#include <machine/atomic.h>
-#include <machine/segments.h>
#ifndef WITHOUT_CAPSICUM
#include <capsicum_helpers.h>
diff --git a/usr.sbin/bhyve/task_switch.c b/usr.sbin/bhyve/task_switch.c
index 17b311d8f211..f6bf7210f46c 100644
--- a/usr.sbin/bhyve/task_switch.c
+++ b/usr.sbin/bhyve/task_switch.c
@@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$");
#include <sys/mman.h>
#include <x86/psl.h>
-#include <x86/segments.h>
#include <x86/specialreg.h>
#include <machine/vmm.h>
#include <machine/vmm_instruction_emul.h>