aboutsummaryrefslogtreecommitdiff
path: root/stand/efi
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-11-24 20:12:57 +0000
committerWarner Losh <imp@FreeBSD.org>2023-11-27 05:24:00 +0000
commit7c43148a974877188a930e4078a164f83da8e652 (patch)
tree72b6dc71550e2eb9439b0a6fe1e40d2719d4b7bb /stand/efi
parent0044e9124e474b5d45a77df328d0d7b00ec7e57b (diff)
downloadsrc-7c43148a974877188a930e4078a164f83da8e652.tar.gz
src-7c43148a974877188a930e4078a164f83da8e652.zip
stand: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
Diffstat (limited to 'stand/efi')
-rw-r--r--stand/efi/boot1/boot1.c1
-rw-r--r--stand/efi/boot1/proto.c1
-rw-r--r--stand/efi/boot1/ufs_module.c2
-rw-r--r--stand/efi/boot1/zfs_module.c2
-rw-r--r--stand/efi/fdt/efi_fdt.c1
-rw-r--r--stand/efi/gptboot/proto.c1
-rw-r--r--stand/efi/libefi/efi_console.c1
-rw-r--r--stand/efi/libefi/efichar.c1
-rw-r--r--stand/efi/libefi/efihttp.c1
-rw-r--r--stand/efi/libefi/efinet.c1
-rw-r--r--stand/efi/libefi/efizfs.c1
-rw-r--r--stand/efi/loader/arch/arm/exec.c1
-rw-r--r--stand/efi/loader/arch/riscv/exec.c1
-rw-r--r--stand/efi/loader/copy.c1
14 files changed, 2 insertions, 14 deletions
diff --git a/stand/efi/boot1/boot1.c b/stand/efi/boot1/boot1.c
index 19627e870201..908baf400972 100644
--- a/stand/efi/boot1/boot1.c
+++ b/stand/efi/boot1/boot1.c
@@ -19,7 +19,6 @@
* purpose.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <machine/elf.h>
#include <machine/stdarg.h>
diff --git a/stand/efi/boot1/proto.c b/stand/efi/boot1/proto.c
index cec4e2d1942c..6660d39a921b 100644
--- a/stand/efi/boot1/proto.c
+++ b/stand/efi/boot1/proto.c
@@ -19,7 +19,6 @@
* purpose.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <machine/elf.h>
#include <machine/stdarg.h>
diff --git a/stand/efi/boot1/ufs_module.c b/stand/efi/boot1/ufs_module.c
index 6848dd79eec0..0bdd5c018b06 100644
--- a/stand/efi/boot1/ufs_module.c
+++ b/stand/efi/boot1/ufs_module.c
@@ -32,7 +32,7 @@
#include <stdarg.h>
#include <stdbool.h>
-#include <sys/cdefs.h>
+
#include <sys/param.h>
#include <sys/disk/bsd.h>
#include <efi.h>
diff --git a/stand/efi/boot1/zfs_module.c b/stand/efi/boot1/zfs_module.c
index 01b95e06e38f..16722b33f0b9 100644
--- a/stand/efi/boot1/zfs_module.c
+++ b/stand/efi/boot1/zfs_module.c
@@ -26,7 +26,7 @@
#include <stddef.h>
#include <stdarg.h>
#include <stdbool.h>
-#include <sys/cdefs.h>
+
#include <sys/param.h>
#include <sys/queue.h>
#include <efi.h>
diff --git a/stand/efi/fdt/efi_fdt.c b/stand/efi/fdt/efi_fdt.c
index 7010a272d9db..adf830e44182 100644
--- a/stand/efi/fdt/efi_fdt.c
+++ b/stand/efi/fdt/efi_fdt.c
@@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <stand.h>
#include <efi.h>
diff --git a/stand/efi/gptboot/proto.c b/stand/efi/gptboot/proto.c
index 54a229db7bca..e2face6c23e5 100644
--- a/stand/efi/gptboot/proto.c
+++ b/stand/efi/gptboot/proto.c
@@ -23,7 +23,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <machine/elf.h>
#include <machine/stdarg.h>
diff --git a/stand/efi/libefi/efi_console.c b/stand/efi/libefi/efi_console.c
index 1758cd9d4d6d..4a3219ef3017 100644
--- a/stand/efi/libefi/efi_console.c
+++ b/stand/efi/libefi/efi_console.c
@@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <efi.h>
#include <efilib.h>
diff --git a/stand/efi/libefi/efichar.c b/stand/efi/libefi/efichar.c
index 0703c167de47..86642d325754 100644
--- a/stand/efi/libefi/efichar.c
+++ b/stand/efi/libefi/efichar.c
@@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <errno.h>
#ifdef _STANDALONE
diff --git a/stand/efi/libefi/efihttp.c b/stand/efi/libefi/efihttp.c
index 081b34336cb0..bcc0f7e4d79e 100644
--- a/stand/efi/libefi/efihttp.c
+++ b/stand/efi/libefi/efihttp.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <netinet/in.h>
diff --git a/stand/efi/libefi/efinet.c b/stand/efi/libefi/efinet.c
index ede8b7297f17..62fc203c83b5 100644
--- a/stand/efi/libefi/efinet.c
+++ b/stand/efi/libefi/efinet.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <net/ethernet.h>
#include <netinet/in.h>
diff --git a/stand/efi/libefi/efizfs.c b/stand/efi/libefi/efizfs.c
index 83551596bb32..1c80f1ae26b9 100644
--- a/stand/efi/libefi/efizfs.c
+++ b/stand/efi/libefi/efizfs.c
@@ -25,7 +25,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <stand.h>
diff --git a/stand/efi/loader/arch/arm/exec.c b/stand/efi/loader/arch/arm/exec.c
index 99ee498b1b65..85a8c26ade30 100644
--- a/stand/efi/loader/arch/arm/exec.c
+++ b/stand/efi/loader/arch/arm/exec.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/linker.h>
diff --git a/stand/efi/loader/arch/riscv/exec.c b/stand/efi/loader/arch/riscv/exec.c
index 686a42028608..3c40517ea968 100644
--- a/stand/efi/loader/arch/riscv/exec.c
+++ b/stand/efi/loader/arch/riscv/exec.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/linker.h>
diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c
index 12f7273edacd..3f2d1c6c20b0 100644
--- a/stand/efi/loader/copy.c
+++ b/stand/efi/loader/copy.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <stand.h>