git: 974a015fb016 - stable/13 - bhyve: Use "void" instead of empty parameter lists
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Aug 2022 20:46:53 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=974a015fb01660a837dc1ed65cce32837a23c184 commit 974a015fb01660a837dc1ed65cce32837a23c184 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-08-16 17:10:58 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-08-23 20:05:29 +0000 bhyve: Use "void" instead of empty parameter lists Sponsored by: The FreeBSD Foundation (cherry picked from commit 75ce327a2c433e793cc15861944955396ef3306b) --- usr.sbin/bhyve/pci_emul.c | 2 +- usr.sbin/bhyve/pci_emul.h | 2 +- usr.sbin/bhyve/pci_lpc.c | 2 +- usr.sbin/bhyve/pci_lpc.h | 2 +- usr.sbin/bhyve/pci_passthru.c | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c index b58a51bce78b..bdb5dc5ed0a9 100644 --- a/usr.sbin/bhyve/pci_emul.c +++ b/usr.sbin/bhyve/pci_emul.c @@ -321,7 +321,7 @@ done: } void -pci_print_supported_devices() +pci_print_supported_devices(void) { struct pci_devemu **pdpp, *pdp; diff --git a/usr.sbin/bhyve/pci_emul.h b/usr.sbin/bhyve/pci_emul.h index c10c4af4698b..fff70530c66c 100644 --- a/usr.sbin/bhyve/pci_emul.h +++ b/usr.sbin/bhyve/pci_emul.h @@ -253,7 +253,7 @@ int pci_msix_pba_bar(struct pci_devinst *pi); int pci_msi_maxmsgnum(struct pci_devinst *pi); int pci_parse_legacy_config(nvlist_t *nvl, const char *opt); int pci_parse_slot(char *opt); -void pci_print_supported_devices(); +void pci_print_supported_devices(void); void pci_populate_msicap(struct msicap *cap, int msgs, int nextptr); int pci_emul_add_msixcap(struct pci_devinst *pi, int msgnum, int barnum); int pci_emul_msix_twrite(struct pci_devinst *pi, uint64_t offset, int size, diff --git a/usr.sbin/bhyve/pci_lpc.c b/usr.sbin/bhyve/pci_lpc.c index 8cc536fef112..322edae77bd1 100644 --- a/usr.sbin/bhyve/pci_lpc.c +++ b/usr.sbin/bhyve/pci_lpc.c @@ -131,7 +131,7 @@ done: } void -lpc_print_supported_devices() +lpc_print_supported_devices(void) { size_t i; diff --git a/usr.sbin/bhyve/pci_lpc.h b/usr.sbin/bhyve/pci_lpc.h index 9041f79c507a..611b025d4386 100644 --- a/usr.sbin/bhyve/pci_lpc.h +++ b/usr.sbin/bhyve/pci_lpc.h @@ -68,7 +68,7 @@ struct lpc_sysres { #define SYSRES_MEM(base, length) LPC_SYSRES(LPC_SYSRES_MEM, base, length) int lpc_device_parse(const char *opt); -void lpc_print_supported_devices(); +void lpc_print_supported_devices(void); char *lpc_pirq_name(int pin); void lpc_pirq_routed(void); const char *lpc_bootrom(void); diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c index 7817274a3541..7db0e8f5b522 100644 --- a/usr.sbin/bhyve/pci_passthru.c +++ b/usr.sbin/bhyve/pci_passthru.c @@ -117,7 +117,8 @@ msi_caplen(int msgctrl) } static int -pcifd_init() { +pcifd_init(void) +{ pcifd = open(_PATH_DEVPCI, O_RDWR, 0); if (pcifd < 0) { warn("failed to open %s", _PATH_DEVPCI);