Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2024 13:12:54 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: abf239cf097b - main - arm64/vmm: Add braces to fix the gcc build
Message-ID:  <202406111312.45BDCsGI054681@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=abf239cf097b7a16defb9857027165427341c38c

commit abf239cf097b7a16defb9857027165427341c38c
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-06-11 08:49:14 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-06-11 13:12:43 +0000

    arm64/vmm: Add braces to fix the gcc build
    
    Reviewed by:    markj, emaste
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D45548
---
 sys/arm64/vmm/vmm_arm64.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/arm64/vmm/vmm_arm64.c b/sys/arm64/vmm/vmm_arm64.c
index e0547bcef914..6b058a993cdd 100644
--- a/sys/arm64/vmm/vmm_arm64.c
+++ b/sys/arm64/vmm/vmm_arm64.c
@@ -1352,7 +1352,7 @@ vmmops_setcap(void *vcpui, int num, int val)
 
 	switch (num) {
 	case VM_CAP_BRK_EXIT:
-		if ((val != 0) == (hypctx->setcaps & (1ul << num)) != 0)
+		if ((val != 0) == ((hypctx->setcaps & (1ul << num)) != 0))
 			break;
 		if (val != 0)
 			hypctx->mdcr_el2 |= MDCR_EL2_TDE;
@@ -1360,7 +1360,7 @@ vmmops_setcap(void *vcpui, int num, int val)
 			hypctx->mdcr_el2 &= ~MDCR_EL2_TDE;
 		break;
 	case VM_CAP_SS_EXIT:
-		if ((val != 0) == (hypctx->setcaps & (1ul << num)) != 0)
+		if ((val != 0) == ((hypctx->setcaps & (1ul << num)) != 0))
 			break;
 
 		if (val != 0) {
@@ -1382,7 +1382,7 @@ vmmops_setcap(void *vcpui, int num, int val)
 		}
 		break;
 	case VM_CAP_MASK_HWINTR:
-		if ((val != 0) == (hypctx->setcaps & (1ul << num)) != 0)
+		if ((val != 0) == ((hypctx->setcaps & (1ul << num)) != 0))
 			break;
 
 		if (val != 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406111312.45BDCsGI054681>