git: c46771a7b736 - main - kern/subr_trap.c: cleanup no longer needed headers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Aug 2022 18:12:19 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c46771a7b736170aa1ed8fbd327f3b560db93e88 commit c46771a7b736170aa1ed8fbd327f3b560db93e88 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-07-25 13:03:59 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-08-02 18:11:10 +0000 kern/subr_trap.c: cleanup no longer needed headers Also bump Foundation' copyright year Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35888 --- sys/kern/subr_trap.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 8071b2922f4a..f9976b090771 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -4,7 +4,7 @@ * Copyright (C) 1994, David Greenman * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. - * Copyright (c) 2007 The FreeBSD Foundation + * Copyright (c) 2007, 2022 The FreeBSD Foundation * * This code is derived from software contributed to Berkeley by * the University of Utah, and William Jolitz. @@ -47,35 +47,22 @@ __FBSDID("$FreeBSD$"); #include "opt_hwpmc_hooks.h" -#include "opt_ktrace.h" -#include "opt_sched.h" #include <sys/param.h> -#include <sys/bus.h> -#include <sys/capsicum.h> -#include <sys/event.h> #include <sys/kernel.h> +#include <sys/limits.h> #include <sys/lock.h> #include <sys/msan.h> #include <sys/mutex.h> -#include <sys/pmckern.h> #include <sys/proc.h> #include <sys/ktr.h> -#include <sys/ptrace.h> -#include <sys/racct.h> #include <sys/resourcevar.h> #include <sys/sched.h> -#include <sys/signalvar.h> #include <sys/syscall.h> #include <sys/syscallsubr.h> #include <sys/sysent.h> #include <sys/systm.h> #include <sys/vmmeter.h> -#ifdef KTRACE -#include <sys/uio.h> -#include <sys/ktrace.h> -#endif -#include <security/audit/audit.h> #include <machine/cpu.h> @@ -87,7 +74,9 @@ __FBSDID("$FreeBSD$"); #include <sys/pmckern.h> #endif -#include <security/mac/mac_framework.h> +#ifdef EPOCH_TRACE +#include <sys/epoch.h> +#endif /* * Define the code needed before returning to user mode, for trap and