X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fasm-avr32%2Fkdebug.h;h=7f54e2b15d136ab5e2ee2234ef49fd0700ab2473;hb=45e98cdb6d365b34b7a2d849e4d8bdc264d8e6e4;hp=f583b643ffb2b61235b387fa37159cb19f6ac88e;hpb=5a3e3b2230980cf2ce6e5e56b816dde19b993939;p=mv-sheeva.git diff --git a/include/asm-avr32/kdebug.h b/include/asm-avr32/kdebug.h index f583b643ffb..7f54e2b15d1 100644 --- a/include/asm-avr32/kdebug.h +++ b/include/asm-avr32/kdebug.h @@ -3,36 +3,24 @@ #include -struct pt_regs; - -struct die_args { - struct pt_regs *regs; - int trapnr; -}; - -int register_die_notifier(struct notifier_block *nb); -int unregister_die_notifier(struct notifier_block *nb); -int register_page_fault_notifier(struct notifier_block *nb); -int unregister_page_fault_notifier(struct notifier_block *nb); -extern struct atomic_notifier_head avr32_die_chain; - /* Grossly misnamed. */ enum die_val { - DIE_FAULT, DIE_BREAKPOINT, DIE_SSTEP, - DIE_PAGE_FAULT, }; -static inline int notify_die(enum die_val val, struct pt_regs *regs, - int trap, int sig) +/* + * These are only here because kprobes.c wants them to implement a + * blatant layering violation. Will hopefully go away soon once all + * architectures are updated. + */ +static inline int register_page_fault_notifier(struct notifier_block *nb) { - struct die_args args = { - .regs = regs, - .trapnr = trap, - }; - - return atomic_notifier_call_chain(&avr32_die_chain, val, &args); + return 0; +} +static inline int unregister_page_fault_notifier(struct notifier_block *nb) +{ + return 0; } #endif /* __ASM_AVR32_KDEBUG_H */