From 533b6ecfdcae61a47740381193e050de91f1f430 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 8 Apr 2022 17:25:14 -0700 Subject: [PATCH] Pass the computed enum of the correct type to dbg_setup_watchpoint. The two sets of constants happen to have the same values, so this is just a cosmetic fix. --- sys/arm/arm/debug_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/arm/debug_monitor.c b/sys/arm/arm/debug_monitor.c index b9678a5040a..7f4dd829b4f 100644 --- a/sys/arm/arm/debug_monitor.c +++ b/sys/arm/arm/debug_monitor.c @@ -345,7 +345,7 @@ kdb_cpu_set_watchpoint(vm_offset_t addr, size_t size, int access) return (EINVAL); } - return (dbg_setup_watchpoint(addr, size, (enum dbg_access_t)access)); + return (dbg_setup_watchpoint(addr, size, dbg_access)); } int