git: 2a35b00732d9 - main - kern/kern_ktrace.c: normalize includes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Jun 2025 04:07:46 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=2a35b00732d948ee57ad86d571d6af1533b721f0
commit 2a35b00732d948ee57ad86d571d6af1533b721f0
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-06-01 00:45:21 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-06-03 02:47:38 +0000
kern/kern_ktrace.c: normalize includes
Remove unneeded sys/cdefs.h and sys/param.h.
Order.
Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50633
---
sys/kern/kern_ktrace.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 96ab5c26973f..15a8a4ab4fa4 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -31,17 +31,16 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include "opt_ktrace.h"
#define EXTERR_CATEGORY EXTERR_KTRACE
-#include <sys/param.h>
-#include <sys/capsicum.h>
#include <sys/systm.h>
+#include <sys/capsicum.h>
#include <sys/exterrvar.h>
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/kthread.h>
+#include <sys/ktrace.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/malloc.h>
@@ -50,16 +49,15 @@
#include <sys/priv.h>
#include <sys/proc.h>
#include <sys/resourcevar.h>
-#include <sys/unistd.h>
-#include <sys/vnode.h>
#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/ktrace.h>
#include <sys/sx.h>
#include <sys/sysctl.h>
#include <sys/sysent.h>
#include <sys/syslog.h>
#include <sys/sysproto.h>
+#include <sys/unistd.h>
+#include <sys/vnode.h>
#include <security/mac/mac_framework.h>