From c46771a7b736170aa1ed8fbd327f3b560db93e88 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 25 Jul 2022 16:03:59 +0300 Subject: [PATCH] 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 8071b2922f4..f9976b09077 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 -#include -#include -#include #include +#include #include #include #include -#include #include #include -#include -#include #include #include -#include #include #include #include #include #include -#ifdef KTRACE -#include -#include -#endif -#include #include @@ -87,7 +74,9 @@ __FBSDID("$FreeBSD$"); #include #endif -#include +#ifdef EPOCH_TRACE +#include +#endif /* * Define the code needed before returning to user mode, for trap and