|
@@ -10,6 +10,8 @@ enum bug_trap_type {
|
|
|
BUG_TRAP_TYPE_BUG = 2,
|
|
|
};
|
|
|
|
|
|
+struct pt_regs;
|
|
|
+
|
|
|
#ifdef CONFIG_GENERIC_BUG
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
|
@@ -20,7 +22,7 @@ static inline int is_warning_bug(const struct bug_entry *bug)
|
|
|
|
|
|
const struct bug_entry *find_bug(unsigned long bugaddr);
|
|
|
|
|
|
-enum bug_trap_type report_bug(unsigned long bug_addr);
|
|
|
+enum bug_trap_type report_bug(unsigned long bug_addr, struct pt_regs *regs);
|
|
|
|
|
|
int module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
|
|
|
struct module *);
|
|
@@ -31,7 +33,8 @@ int is_valid_bugaddr(unsigned long addr);
|
|
|
|
|
|
#else /* !CONFIG_GENERIC_BUG */
|
|
|
|
|
|
-static inline enum bug_trap_type report_bug(unsigned long bug_addr)
|
|
|
+static inline enum bug_trap_type report_bug(unsigned long bug_addr,
|
|
|
+ struct pt_regs *regs)
|
|
|
{
|
|
|
return BUG_TRAP_TYPE_BUG;
|
|
|
}
|