git: eccde5f496ce - main - sys/kern: Remove a few sys/cdefs.h around some elf things

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 03:40:33 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=eccde5f496ce9ced2d0ffcc13beeb4a8812bcfc3

commit eccde5f496ce9ced2d0ffcc13beeb4a8812bcfc3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-21 03:40:19 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-21 03:40:19 +0000

    sys/kern: Remove a few sys/cdefs.h around some elf things
    
    These sys/cdefs.h are no longer needed. Remove them in advance of
    other work in this area.
    
    Sponsored by:           Netflix
---
 sys/kern/imgact_elf32.c | 1 -
 sys/kern/imgact_elf64.c | 1 -
 sys/kern/init_main.c    | 1 -
 sys/kern/link_elf.c     | 1 -
 sys/kern/link_elf_obj.c | 1 -
 5 files changed, 5 deletions(-)

diff --git a/sys/kern/imgact_elf32.c b/sys/kern/imgact_elf32.c
index f74b0d31c9d4..b3e8edb28b3f 100644
--- a/sys/kern/imgact_elf32.c
+++ b/sys/kern/imgact_elf32.c
@@ -26,6 +26,5 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
 #define __ELF_WORD_SIZE 32
 #include <kern/imgact_elf.c>
diff --git a/sys/kern/imgact_elf64.c b/sys/kern/imgact_elf64.c
index bd198bae4fe6..b903755779ae 100644
--- a/sys/kern/imgact_elf64.c
+++ b/sys/kern/imgact_elf64.c
@@ -26,6 +26,5 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
 #define __ELF_WORD_SIZE 64
 #include <kern/imgact_elf.c>
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 96980b869f91..3df4b1edf4a2 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -41,7 +41,6 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
 #include "opt_ddb.h"
 #include "opt_kdb.h"
 #include "opt_init_path.h"
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index eb7ce3828deb..4c7af262addb 100644
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -26,7 +26,6 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
 #include "opt_ddb.h"
 #include "opt_gdb.h"
 
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c
index 0b2befc02c1a..1001cb53ba49 100644
--- a/sys/kern/link_elf_obj.c
+++ b/sys/kern/link_elf_obj.c
@@ -27,7 +27,6 @@
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
 #include "opt_ddb.h"
 
 #include <sys/param.h>