git: 862add4358d4 - stable/13 - linux: Drop some unnecessary includes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:24 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=862add4358d45ccb72f5df6c5382cc24856c5330 commit 862add4358d45ccb72f5df6c5382cc24856c5330 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-06-17 19:33:38 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-06-17 19:33:38 +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 (cherry picked from commit 06d5ef0aad20f703c15350663ce2600bae2fe189) --- sys/compat/linux/linux_elf.c | 11 ++++------- sys/compat/linux/linux_ptrace.c | 2 -- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/sys/compat/linux/linux_elf.c b/sys/compat/linux/linux_elf.c index 077e0c93c884..bcbd4d1cad51 100644 --- a/sys/compat/linux/linux_elf.c +++ b/sys/compat/linux/linux_elf.c @@ -41,18 +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 8831781702b7..151355d2bb3f 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>