mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
microblaze: Declare microblaze_kgdb_break in header
This patch removes the warning: arch/microblaze/kernel/kgdb.c:81:6: warning: no previous prototype for 'microblaze_kgdb_break' [-Wmissing-prototypes] Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
b366f11b9a
commit
f396a4d231
@ -23,6 +23,9 @@ static inline void arch_kgdb_breakpoint(void)
|
||||
__asm__ __volatile__("brki r16, 0x18;");
|
||||
}
|
||||
|
||||
struct pt_regs;
|
||||
asmlinkage void microblaze_kgdb_break(struct pt_regs *regs);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __MICROBLAZE_KGDB_H__ */
|
||||
#endif /* __KERNEL__ */
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <linux/io.h>
|
||||
#include <asm/cacheflush.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/kgdb.h>
|
||||
#include <asm/pvr.h>
|
||||
|
||||
#define GDB_REG 0
|
||||
@ -77,7 +78,7 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs)
|
||||
pt_regb[i] = gdb_regs[i];
|
||||
}
|
||||
|
||||
void microblaze_kgdb_break(struct pt_regs *regs)
|
||||
asmlinkage void microblaze_kgdb_break(struct pt_regs *regs)
|
||||
{
|
||||
if (kgdb_handle_exception(1, SIGTRAP, 0, regs) != 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user