From nobody Tue Aug 16 18:22:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M6fcw67cyz4Z5Fb; Tue, 16 Aug 2022 18:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M6fcw5XjSz46g0; Tue, 16 Aug 2022 18:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660674128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MGyu0xyLNnQa8Qh6MC/jgThWM4j8h0BkecXTC7OWZbw=; b=C34jDzMdUL+GAPdnUbhiJvIAWrCqNE/8FKL5qBCD/bvAxm7qa+Oa32i2cUfaWNEQNsUSZ2 DYGh/SurFcY9Z2BjEZDRlGBBtNZug1MUHoXYlXO9WfuNcavjqZBXhiNlvjLppbEMbWDZNk 6QZuTRFgjNcoeXX3XXKONuT5SIcKNp87EMRVh+MIGg7qInZyfWOe8IKC7KRFtO6V4wauKe 3De9gx+EJL0MDsZkaog/eVvn6tkTcV8qbGDsz++xcOXtuU2VwFIyt1BqxjFfTnY7B3H+MV iIaxLnqUMswYPQNB2JF7cL8K1EhkOqmLS7bMu6G79SJAY5AL0z0WAbqPb3FuMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M6fcw4JjDzK1k; Tue, 16 Aug 2022 18:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27GIM8ha028704; Tue, 16 Aug 2022 18:22:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27GIM8N1028703; Tue, 16 Aug 2022 18:22:08 GMT (envelope-from git) Date: Tue, 16 Aug 2022 18:22:08 GMT Message-Id: <202208161822.27GIM8N1028703@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 75ce327a2c43 - main - bhyve: Use "void" instead of empty parameter lists List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 75ce327a2c433e793cc15861944955396ef3306b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660674128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MGyu0xyLNnQa8Qh6MC/jgThWM4j8h0BkecXTC7OWZbw=; b=SIVOE0QErlS8zl3JbghBcKD3OvwMGRTJ8oxcCVJwzMXPbB+rBbK7a0D37+KJKUARU9ujzk fHws34XrshBFR4OgTfpL3yfEocrUkf9KLlvk1RsKpR/IcScp+Zk5nfesGOxkmJxHz1IXiT HBuz9m/3SiV/LwPWTo8iocbE0tNQKXpm8uJ6W/PtYhzBuvQNsrItk4XrCnDWTsBQ9mKRcL Z6na7EG5MhafdqGio+WWAPhiTXEm9ogXNNvFbi+9mX0akEaI4bXccB0hZoaDargjBvbRS2 rJmUyyPDeC88/LZhVAIgJIdIK/MZbXGwinLC77B/oV4tdUPbSNQaNXgK64kv5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660674128; a=rsa-sha256; cv=none; b=qVw5iM7jOkMixSqi4Gkt9qXj1jGJql+gW5ErnL8WtJ/88gB0CkdCdUMg/JDkSPm7B2vJZl uNVHg9B6Q34SJDA3KbASsVeZ9GCdMlG3p5kWcaaZA0oWXVPmYMK465NhV0bEqUk5AH4C1q pvCbR3lAxGGeBiQDBAuvPSLk4TXEZHZJTCVABvTEYtOU2X7I2PnN5hh2wQBPFGeqo4qyfz TKyxvuyKosh4OCnV4eh8GRIr3mv1Mvt9t7eJ/QeERamh05ihHBh48gBgVBPLCfDZye775T pgqRQVOgyI6krPiaFHvww/FKZD4Pv0lCYrS+Q33NqSQbNmzjOyXUEBwgZo2f3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=75ce327a2c433e793cc15861944955396ef3306b commit 75ce327a2c433e793cc15861944955396ef3306b Author: Mark Johnston AuthorDate: 2022-08-16 17:10:58 +0000 Commit: Mark Johnston CommitDate: 2022-08-16 18:21:44 +0000 bhyve: Use "void" instead of empty parameter lists MFC after: 1 week Sponsored by: The FreeBSD Foundation --- 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 9bcd3223007a..2a79abdfdc12 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 b8cfabefda2b..14a8fe936341 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 5c3aa238f43d..ef65198b63b8 100644 --- a/usr.sbin/bhyve/pci_lpc.c +++ b/usr.sbin/bhyve/pci_lpc.c @@ -143,7 +143,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 f4b532ed101e..42a2f706933d 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);