git: d27413a7d775 - main - loader: Remove unneeded includes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Apr 2025 21:59:13 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=d27413a7d7751083d763a73442d416a2dc05c3d5
commit d27413a7d7751083d763a73442d416a2dc05c3d5
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-04-17 04:03:56 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-04-17 21:56:45 +0000
loader: Remove unneeded includes
We've not needed to include link.h in the loader for a long time. I
shoud have removed it in f38658e1408c rather than going link.h ->
sys/sys_link.h. It's purely a userland shared library thing. Remove it
now, since it's not needed. Also remove a few headers that are redundant
with stand.h in this environment.
Sponsored by: Netflix
Reviewed by: kevans, andrew, jhibbits
Differential Revision: https://reviews.freebsd.org/D49859
---
stand/common/load_elf.c | 3 ---
stand/common/load_elf_obj.c | 3 ---
2 files changed, 6 deletions(-)
diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index e19aefa121e7..537692e7d745 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -30,11 +30,8 @@
#include <sys/exec.h>
#include <sys/linker.h>
#include <sys/module.h>
-#include <sys/stdint.h>
-#include <string.h>
#include <machine/elf.h>
#include <stand.h>
-#include <sys/link_elf.h>
#include "bootstrap.h"
#include "modinfo.h"
diff --git a/stand/common/load_elf_obj.c b/stand/common/load_elf_obj.c
index 1e07828dd8ac..c20da80eb602 100644
--- a/stand/common/load_elf_obj.c
+++ b/stand/common/load_elf_obj.c
@@ -30,11 +30,8 @@
#include <sys/exec.h>
#include <sys/linker.h>
#include <sys/module.h>
-#include <stdint.h>
-#include <string.h>
#include <machine/elf.h>
#include <stand.h>
-#include <sys/link_elf.h>
#include "bootstrap.h"
#include "modinfo.h"