Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 2025 09:52:58 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 02b72b1540bf - main - arm: Remove unused variable in dbg_arch_supported
Message-ID:  <692ac27a.370eb.5b6100@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

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

commit 02b72b1540bf4e8daaeda4b4ef1670b766768db7
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-11-29 09:47:49 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-11-29 09:47:49 +0000

    arm: Remove unused variable in dbg_arch_supported
    
    Removed unused dbg_didr which had been used prior to f42421307b11 to
    detect qemu unsupported debugger. I'm unsure how this slipped through my
    testing.
    
    Fixes: f42421307b11
    Sponsored by: Netflix
---
 sys/arm/arm/debug_monitor.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/arm/arm/debug_monitor.c b/sys/arm/arm/debug_monitor.c
index 4d61896a2142..a703c65f541b 100644
--- a/sys/arm/arm/debug_monitor.c
+++ b/sys/arm/arm/debug_monitor.c
@@ -814,14 +814,12 @@ dbg_get_ossr(void)
 static __inline boolean_t
 dbg_arch_supported(void)
 {
-	uint32_t dbg_didr;
-
 	switch (dbg_model) {
 	case ID_DFR0_CP_DEBUG_M_V7:
 	case ID_DFR0_CP_DEBUG_M_V7_1:	/* fall through */
 		return (TRUE);
 	default:
-		/* We only support valid v6.x/v7.x modes through CP14 */
+		/* We only support valid v7.x modes through CP14 */
 		return (FALSE);
 	}
 }


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692ac27a.370eb.5b6100>