git: 41a4122b7b78 - stable/14 - linux(4): Cleanup includes under amd64/linux

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Sun, 24 Sep 2023 10:54:06 UTC
The branch stable/14 has been updated by dchagin:

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

commit 41a4122b7b78e49fbcd91a8abb409dad9f3ac2d2
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-09-11 18:29:34 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-09-24 10:51:36 +0000

    linux(4): Cleanup includes under amd64/linux
    
    No functional changes.
    
    MFC after:              1 week
    
    (cherry picked from commit 68df2376e0e50cea0f8c3c04dc2d8a7b63515773)
---
 sys/amd64/linux/linux_machdep.c | 13 -------------
 sys/amd64/linux/linux_sysvec.c  |  7 +------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/sys/amd64/linux/linux_machdep.c b/sys/amd64/linux/linux_machdep.c
index 33ce902a45bd..7ec1ec56bb95 100644
--- a/sys/amd64/linux/linux_machdep.c
+++ b/sys/amd64/linux/linux_machdep.c
@@ -33,7 +33,6 @@
 #include <sys/systm.h>
 #include <sys/ktr.h>
 #include <sys/lock.h>
-#include <sys/malloc.h>
 #include <sys/mman.h>
 #include <sys/mutex.h>
 #include <sys/priv.h>
@@ -41,25 +40,13 @@
 #include <sys/ptrace.h>
 #include <sys/syscallsubr.h>
 
-#include <security/mac/mac_framework.h>
-
-#include <ufs/ufs/extattr.h>
-#include <ufs/ufs/quota.h>
-#include <ufs/ufs/ufsmount.h>
-
-#include <machine/frame.h>
 #include <machine/md_var.h>
 #include <machine/pcb.h>
-#include <machine/psl.h>
-#include <machine/segments.h>
 #include <machine/specialreg.h>
 
 #include <vm/pmap.h>
 #include <vm/vm.h>
 #include <vm/vm_param.h>
-#include <vm/vm_extern.h>
-#include <vm/vm_kern.h>
-#include <vm/vm_map.h>
 
 #include <x86/ifunc.h>
 #include <x86/reg.h>
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index 55eb34b6d329..2907323d903c 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -40,7 +40,6 @@
 #include <sys/kernel.h>
 #include <sys/ktr.h>
 #include <sys/lock.h>
-#include <sys/malloc.h>
 #include <sys/module.h>
 #include <sys/mutex.h>
 #include <sys/proc.h>
@@ -51,13 +50,9 @@
 
 #include <vm/pmap.h>
 #include <vm/vm.h>
-#include <vm/vm_map.h>
-#include <vm/vm_page.h>
+#include <vm/vm_param.h>
 
-#include <machine/cpu.h>
 #include <machine/md_var.h>
-#include <machine/pcb.h>
-#include <machine/specialreg.h>
 #include <machine/trap.h>
 
 #include <x86/linux/linux_x86.h>