summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/kgdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/kernel/kgdb.c')
-rw-r--r--arch/loongarch/kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/kgdb.c b/arch/loongarch/kernel/kgdb.c
index 7be5b4c0c900..17664a6043b1 100644
--- a/arch/loongarch/kernel/kgdb.c
+++ b/arch/loongarch/kernel/kgdb.c
@@ -697,7 +697,7 @@ void kgdb_arch_late(void)
continue;
breakinfo[i].pev = register_wide_hw_breakpoint(&attr, NULL, NULL);
- if (IS_ERR((void * __force)breakinfo[i].pev)) {
+ if (IS_ERR_PCPU(breakinfo[i].pev)) {
pr_err("kgdb: Could not allocate hw breakpoints.\n");
breakinfo[i].pev = NULL;
return;