1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
11 #include <asm/ptrace.h>
15 void show_regs(struct pt_regs *regs);
16 void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs);
17 void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
18 unsigned long address);
19 void die(const char *str, struct pt_regs *regs, unsigned long address);
22 pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
23 barrier_before_unreachable(); \
29 #include <asm-generic/bug.h>
31 #endif /* !__ASSEMBLY__ */