git: 533b6ecfdcae - main - Pass the computed enum of the correct type to dbg_setup_watchpoint.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 00:28:01 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=533b6ecfdcae61a47740381193e050de91f1f430 commit 533b6ecfdcae61a47740381193e050de91f1f430 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 00:25:14 +0000 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 b9678a5040af..7f4dd829b4f9 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