summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/loader/autoload.c
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-01-12 02:17:39 +0000
committersmh <smh@FreeBSD.org>2016-01-12 02:17:39 +0000
commit5bfbb8e2e501c2ed4209fb168e9878e598acc192 (patch)
tree4520281a4158d809c8e552821a3d2ed21e225359 /sys/boot/efi/loader/autoload.c
parent0517d6cfae2a854c90ccf67ec23cfa18945a67ac (diff)
downloadFreeBSD-src-5bfbb8e2e501c2ed4209fb168e9878e598acc192.zip
FreeBSD-src-5bfbb8e2e501c2ed4209fb168e9878e598acc192.tar.gz
Enable warnings in EFI boot code
Set WARNS if not set for EFI boot code and fix the issues highlighted by setting it. Most components are set to WARNS level 6 with few being left at lower levels due to the amount of changes needed to fix at higher levels. Error types fixed: * Missing / invalid casts * Missing inner structs * Unused vars * Missing static for internal only funcs * Missing prototypes * Alignment changes * Use of uninitialised vars * Unknown pragma (intrinsic) * Missing types etc due to missing includes * printf formatting types Reviewed by: emaste (in part) MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4839
Diffstat (limited to 'sys/boot/efi/loader/autoload.c')
-rw-r--r--sys/boot/efi/loader/autoload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/efi/loader/autoload.c b/sys/boot/efi/loader/autoload.c
index 694a6da..c1eb849 100644
--- a/sys/boot/efi/loader/autoload.c
+++ b/sys/boot/efi/loader/autoload.c
@@ -27,6 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "loader_efi.h"
+
int
efi_autoload(void)
{
OpenPOWER on IntegriCloud