From nobody Tue Aug 23 20:46:53 2022 X-Original-To: dev-commits-src-branches@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 4MC1Vk168Rz4ZFgv; Tue, 23 Aug 2022 20:46:54 +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 4MC1Vk0dfsz3Z8d; Tue, 23 Aug 2022 20:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661287614; 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=lcJxmN7LvWPXXx3C832CA/s5vFUzQrlMLXaIWIUIako=; b=EBOZBpgyKeA14pQ0IGBq343ueXjAN2GY9Yk5VU4NycTIN+5tFtJoR7QahfmEcnkNdxobMU DGjPihoyNmZAgV8iTrJxJMc0Ac/XvpV64qmMFyXMSR/wrqnRZrjZjaOxzj7bOU55lLfdTJ 87ormPOvg9pzraTxC9jB08lFIVgTbKykjr2hWUGdNJwX/ZLP8tglVvMoF9I6gdy42V0/86 0LAv/hqwDxoUq7Fw6wcn6KUcOg4tAVJ/66rt1O2YbnWxuqGhOh1qV+8Wc193FaP10t4EPo TF0v7rkr1vI3+nhGOwsYyYCSOdG3neou9crQ0BltDxF6fSxyM7FUJcyLnYbMRg== 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 4MC1Vj6XsPzjZ6; Tue, 23 Aug 2022 20:46:53 +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 27NKkrTu049265; Tue, 23 Aug 2022 20:46:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27NKkrSl049264; Tue, 23 Aug 2022 20:46:53 GMT (envelope-from git) Date: Tue, 23 Aug 2022 20:46:53 GMT Message-Id: <202208232046.27NKkrSl049264@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 974a015fb016 - stable/13 - bhyve: Use "void" instead of empty parameter lists List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 974a015fb01660a837dc1ed65cce32837a23c184 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661287614; 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=lcJxmN7LvWPXXx3C832CA/s5vFUzQrlMLXaIWIUIako=; b=Pr3X8fp6AehGbl+NzJ6SqFxmQduCMP/HzWwy4uxbLZ3q/KCUipxEXPK5LmT4LYnIvxHj5v I/6rUtnqUIpsxmwiRxaZmtl37EMjPDme+ht7uB6/LiWXe/6AtyxSWYtYha0BVtH6nhcV4R dbO7mKzt6AIlJJtTumQffcELvcBR5mW01uum1AjqX44aR1g/FE08R7iR8buUZNmYEWtNwP zzPTByeZHeUd72cWQuxBVLNgC51pO9v+5dfYGp8PVraeQxY3usLCUskMH+Iq29LXTzpalM DNgbjTuX9+gNxBwtw/4sGN/s5oYdYGUc0ZQaNIRB1YAJiiUlTZGhgwtIqIzgtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661287614; a=rsa-sha256; cv=none; b=ASx3n5eRiDxSeoI7OR9A/GzVJPSQSuGrSvpC+Mmh263rNKNZQCNQU4sc65kXsRkPjeqS1J rhe3yUgCdPuUBluezlINsYu5DbwvOdNiW9cOLur8Sq5YXEczHbasijCZhBn7kJFaQT0k7q YQBss/ns/BpV7bGMRd3bu8Nb53CytErx2aR+3T2q98QnnTpQWJc6OuzimUrlCLqDsn5kPJ NQxBfjoRoVT+iQYtRIx7EjqHNRN95Ijmn8PhjlboHHVrvW99NevxWYtHGapn0PreF45831 MfZbfK4smBZf4O6Gmpn2IOH1wSj3Ktl6zQEo96+xNA9/B63FubzwelYva+0JKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=974a015fb01660a837dc1ed65cce32837a23c184 commit 974a015fb01660a837dc1ed65cce32837a23c184 Author: Mark Johnston AuthorDate: 2022-08-16 17:10:58 +0000 Commit: Mark Johnston 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);