--- zzzz-none-000/linux-5.15.111/arch/x86/kernel/hw_breakpoint.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/arch/x86/kernel/hw_breakpoint.c 2024-02-07 10:22:35.000000000 +0000 @@ -463,6 +463,7 @@ return 0; } +#ifdef CONFIG_HAVE_HW_BREAKPOINT /* * Release the user breakpoints used by ptrace */ @@ -479,6 +480,7 @@ t->virtual_dr6 = 0; t->ptrace_dr7 = 0; } +#endif void hw_breakpoint_restore(void) { @@ -509,6 +511,7 @@ */ static int hw_breakpoint_handler(struct die_args *args) { +#ifdef CONFIG_PERF_EVENTS int i, rc = NOTIFY_STOP; struct perf_event *bp; unsigned long *dr6_p; @@ -572,6 +575,9 @@ rc = NOTIFY_DONE; return rc; +#else + return 0; +#endif } /*