From nobody Thu Jan 26 19:47:48 2023 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 4P2rpY2HRrz3bnM2; Thu, 26 Jan 2023 19:47:49 +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 4P2rpY0dW8z3Cr8; Thu, 26 Jan 2023 19:47:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762469; 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=HYA1MjlZ851G8Kr9aoGCbEX2xU/OPKy6074DpgCUoL4=; b=YjTpMV26OfB3IpXokvKc8K90M7PRvp48TzACDNAM/MV640Wc9uq7CWPStuxRkj7a6JM9sp 6jFjTxVxjBcmEpTISzId+1aW0HmhTq3F2B3DxFaPE27yabmT3REjOB3bZtuWgpmihZ1l9q EeeIfcFkUbisk7MkrNU9f+23DXuRoWeN8k6CWRJRhlUuRheBptoSPSuAw+h5BOCuv9QAlu bgUeR7CjLNytucEmTv0ZnyHom3o+Ytn75NGCh9573IoXC+FHYtz6+DY6Zblxu5OWYSaZPc ik64liWOzkY00mNVExMP3gr9Wbtb+5EDfDFpBA91AMTsOe6uxO9Af5GBic76Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762469; 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=HYA1MjlZ851G8Kr9aoGCbEX2xU/OPKy6074DpgCUoL4=; b=L4EgWYZeal2dUBZB4FL0k2Q9d5MXsDf2/3ej4SIc8quiFpnK1rEQvvtaKwxAKa3yAYxv+F OnaKYdMR7uiStF0OSo6GGxtEgBGyphwOUKgo7WzWb9EB58t2L5FDCpaBsTStofOYDBN/8G zYYqOKrWMrj89Gn82NcrtdbXFCOJutBLRh1mGCeSDYvAG47nD0EavxNU5L7Yo1JXBPtjxx 64+2lfXZDz2xC4T4gMdk14amSoh2JDgrsBYIJYsBoRcRdi+TrKd1sRta32ujaD2nNhA0nK DKgsBBFT9BBTmxcJ4K+zzig2h5wLvzwcZGdQF5fgxDhIMKKisbj78UhuuIPx4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674762469; a=rsa-sha256; cv=none; b=E1UnsOsEAZmUiUVbb6Mf7WXga/AlD+9QrOaZBVEglBm0NllA57DtNN79Cd3RMYo4f8Yji3 7fb223/HEZIiipvhtQrbVXIvIazyrCcrraEwC5rqGIyHDcIVlXdCL/7peKZgR7q7jS3mC1 Xhx81UtC/IEcVxACZ4dK27BoBk6DeDVWQECcNK5ZABM1BV8usXM2Y6ivawfon6IGXQMwky uPCQXPoJ+exZFfEJaFSfvzDhBEW3bj2SNKGnYC/tVS7Ecyf5CT5gKlc0KTA6LKnLLacVyA +DbHtd4ePdKCRvv4RdczdZ+65MdU/5DGDF72WjG+d2l2PTgSbxs//tsu6O7GFQ== 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 4P2rpX5s62zhFD; Thu, 26 Jan 2023 19:47:48 +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 30QJlmqm007114; Thu, 26 Jan 2023 19:47:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QJlmHQ007113; Thu, 26 Jan 2023 19:47:48 GMT (envelope-from git) Date: Thu, 26 Jan 2023 19:47:48 GMT Message-Id: <202301261947.30QJlmHQ007113@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: fa466e70b325 - stable/13 - 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fa466e70b325f826042e2bfd746471eb23a09f1d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fa466e70b325f826042e2bfd746471eb23a09f1d commit fa466e70b325f826042e2bfd746471eb23a09f1d Author: Mark Johnston AuthorDate: 2022-10-22 17:34:00 +0000 Commit: John Baldwin CommitDate: 2023-01-26 19:30:55 +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 (cherry picked from commit 4a1c23a708f98c1588a196041cda5d55795e2f0c) --- 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 7d62ff58919e..cdd5a8833ba3 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -942,13 +942,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", @@ -958,8 +958,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;