summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2017-01-25 18:31:51 +0000
committerdim <dim@FreeBSD.org>2017-01-25 18:31:51 +0000
commit23feada9c8f688a0692877c7627f83574215dc03 (patch)
treeb5f5636cc4edfaef9512c460fc811a91b9d3d557
parent5268d4e9288fb652e17b8122e1c8216e84b8ac9a (diff)
downloadFreeBSD-src-23feada9c8f688a0692877c7627f83574215dc03.zip
FreeBSD-src-23feada9c8f688a0692877c7627f83574215dc03.tar.gz
MFC r311933:
Use proper prototypes in struct boot_module_t With clang 4.0.0, we are getting the following warnings about struct boot_module_t in efi's boot_module.h: In file included from sys/boot/efi/boot1/ufs_module.c:41: sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*init)(); ^ void sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*status)(); ^ void sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] dev_info_t *(*devices)(); ^ void 3 errors generated. Fix this by adding 'void' to the parameter lists. No functional change. Reviewed by: emaste, imp, smh Differential Revision: https://reviews.freebsd.org/D9144
-rw-r--r--sys/boot/efi/boot1/boot_module.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/efi/boot1/boot_module.h b/sys/boot/efi/boot1/boot_module.h
index 296d5a6..3a6b827 100644
--- a/sys/boot/efi/boot1/boot_module.h
+++ b/sys/boot/efi/boot1/boot_module.h
@@ -64,7 +64,7 @@ typedef struct boot_module_t
const char *name;
/* init is the optional initialiser for the module. */
- void (*init)();
+ void (*init)(void);
/*
* probe checks to see if the module can handle dev.
@@ -89,10 +89,10 @@ typedef struct boot_module_t
void **buf, size_t *bufsize);
/* status outputs information about the probed devices. */
- void (*status)();
+ void (*status)(void);
/* valid devices as found by probe. */
- dev_info_t *(*devices)();
+ dev_info_t *(*devices)(void);
} boot_module_t;
/* Standard boot modules. */
OpenPOWER on IntegriCloud