From nobody Sun Oct 23 15:18:36 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 4MwMKm43G7z4gdVK; Sun, 23 Oct 2022 15:18:36 +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 4MwMKm3YgNz3fJY; Sun, 23 Oct 2022 15:18:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666538316; 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=ysRl4VbKG9Qud/PSDc7rczLCyhk1L2zmINylltgxYI4=; b=VsxWZMhqSLlrc7eUY8rJZZZgzXIM2XSciG+FNQ/YNjXd4rhBrColop4HESNwh2HfwqdPa4 yGkTUX49K3rV1RK8FmzeiSYkNKt0TszAL8r1d3rtmpLq8UcJNP+B+QrHHABUivo7YtP//h Et8Br/68KB2CkTENqivTg00TUNv8Cfq3w30N9v00NJMu0e2N6Zjo3+u0dVm+ImGJJ70cQe JNCfssjDDSapcJJI8q6eHzT89eUJME8AzEhiOJqDHBY7eEEVfxuOyM42cuTQwMAdIDtGnS fbFC6WohuFIu03ozAzzW84Jyq0QXO4CpgjM7oB5Q8GQfobOnY1pzCwhVgdpSrQ== 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 4MwMKm2d5YzwSx; Sun, 23 Oct 2022 15:18:36 +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 29NFIaNV076189; Sun, 23 Oct 2022 15:18:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29NFIaKP076188; Sun, 23 Oct 2022 15:18:36 GMT (envelope-from git) Date: Sun, 23 Oct 2022 15:18:36 GMT Message-Id: <202210231518.29NFIaKP076188@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: 4a1c23a708f9 - main - bhyve: Address some warnings in bhyverun.c 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: 4a1c23a708f98c1588a196041cda5d55795e2f0c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666538316; 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=ysRl4VbKG9Qud/PSDc7rczLCyhk1L2zmINylltgxYI4=; b=awBrs1BIOmw5nXQCMaoykDGiqY5ZnqNSe1+Fef/ND9IUc+k7fY8NcYv9qgtinB399isQEP QHyhtn7gKrw+P9oPKPJct42KZUEmBa7pC6bDwuQTy8p3KCqBUqRA9SLxMqlpbWdVNWix/o 3Eh+ql6wW81zOBhRoTR10dHReg00CcVgyk+VlbhoOPFAg88UDEbnvGGarMsMcphnWR41h2 U+lhCOtv8O8nPZRDFaMgDQVVVXnKKaJnh+GhkCpLjX3FQr76FqbsSVh/yy1diu64vMGumj UOEGkNwpKkDrroXB4SD52RAEhWOYSnOsfE5oFxT6N9TXoL36A/kv8ZT3h7VSYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666538316; a=rsa-sha256; cv=none; b=cxGTDzjzDFFD/DnQThJosKB+JiF76e73gJ41RRyDYAqiLMk/DLwuQdNqlxlOTD6lxEfbVd T42Cx1GSDWxcspxEdkmjLGndoz/TLOU8M0agPcfYWDKt2dLIBebpw7ben0YpF7yalZmRXG 17vfBKJP+SdOaM/wwyGJNvaJpmxWyiCsm21FP5zwKmP8rGGMW+JQESlcko/0WK754rwxEW lHXztfUorwLFZKCoohTj8J9+TqkEIC1uni8iovYZGBowUITHu/gKNFzj/qemCO8Fw5GphM miX9X/j7+NL7ucbskgisgYeky83iKKtN8jw7EKVnRl8EJVUHnzr+YCONuwNNbg== 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=4a1c23a708f98c1588a196041cda5d55795e2f0c commit 4a1c23a708f98c1588a196041cda5d55795e2f0c Author: Mark Johnston AuthorDate: 2022-10-22 17:34:00 +0000 Commit: Mark Johnston CommitDate: 2022-10-23 15:11:33 +0000 bhyve: Address some warnings in bhyverun.c - Annotate unused parameters as such. - Avoid shadowing the global "vmexit". No functional change intended. MFC after: 1 week --- usr.sbin/bhyve/bhyverun.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 0a7e8e252918..348e7ab40196 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -941,13 +941,13 @@ vmexit_breakpoint(struct vmctx *ctx __unused, struct vm_exit *vme, int *pvcpu) } static int -vmexit_ipi(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu) +vmexit_ipi(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu __unused) { int error = -1; int i; - switch (vmexit->u.ipi.mode) { + switch (vme->u.ipi.mode) { case APIC_DELMODE_INIT: - CPU_FOREACH_ISSET (i, &vmexit->u.ipi.dmask) { + CPU_FOREACH_ISSET(i, &vme->u.ipi.dmask) { error = vm_suspend_cpu(ctx, i); if (error) { warnx("%s: failed to suspend cpu %d\n", @@ -957,8 +957,8 @@ vmexit_ipi(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu) } break; case APIC_DELMODE_STARTUP: - CPU_FOREACH_ISSET (i, &vmexit->u.ipi.dmask) { - spinup_ap(ctx, i, vmexit->u.ipi.vector << PAGE_SHIFT); + CPU_FOREACH_ISSET(i, &vme->u.ipi.dmask) { + spinup_ap(ctx, i, vme->u.ipi.vector << PAGE_SHIFT); } error = 0; break;