bhyve: Use "void" instead of empty parameter lists

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-08-16 13:10:58 -04:00
parent c4d26f027b
commit 75ce327a2c
5 changed files with 6 additions and 5 deletions

View File

@ -321,7 +321,7 @@ pci_parse_slot(char *opt)
}
void
pci_print_supported_devices()
pci_print_supported_devices(void)
{
struct pci_devemu **pdpp, *pdp;

View File

@ -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,

View File

@ -143,7 +143,7 @@ lpc_device_parse(const char *opts)
}
void
lpc_print_supported_devices()
lpc_print_supported_devices(void)
{
size_t i;

View File

@ -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);

View File

@ -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);