git: 06d5ef0aad20 - main - linux: Drop some unnecessary includes

From: Edward Tomasz Napierala <trasz_at_FreeBSD.org>
Date: Sat, 13 Nov 2021 14:02:28 UTC
The branch main has been updated by trasz:

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

commit 06d5ef0aad20f703c15350663ce2600bae2fe189
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-11-13 03:26:27 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2021-11-13 03:26:32 +0000

    linux: Drop some unnecessary includes
    
    Drop some unnecessary includes from Linuxulator ptrace
    and coredump code.  No functional changes.
    
    Sponsored By:   EPSRC
    Differential Revision:  https://reviews.freebsd.org/D32925
---
 sys/compat/linux/linux_elf.c    | 10 +++-------
 sys/compat/linux/linux_ptrace.c |  2 --
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/sys/compat/linux/linux_elf.c b/sys/compat/linux/linux_elf.c
index 9192388b347a..bcbd4d1cad51 100644
--- a/sys/compat/linux/linux_elf.c
+++ b/sys/compat/linux/linux_elf.c
@@ -41,19 +41,15 @@
 __FBSDID("$FreeBSD$");
 
 #include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/exec.h>
 #include <sys/imgact.h>
 #include <sys/imgact_elf.h>
-#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/malloc.h>
+#include <sys/mutex.h>
 #include <sys/proc.h>
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
 #include <sys/reg.h>
 #include <sys/sbuf.h>
-#include <sys/sysent.h>
-#include <sys/user.h>
-#include <sys/vnode.h>
 
 #include <machine/elf.h>
 
diff --git a/sys/compat/linux/linux_ptrace.c b/sys/compat/linux/linux_ptrace.c
index 4e171c77e8ab..590a3474a006 100644
--- a/sys/compat/linux/linux_ptrace.c
+++ b/sys/compat/linux/linux_ptrace.c
@@ -39,8 +39,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/sx.h>
 #include <sys/syscallsubr.h>
 
-#include <machine/pcb.h>
-
 #include <machine/../linux/linux.h>
 #include <machine/../linux/linux_proto.h>
 #include <compat/linux/linux_emul.h>