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:
Родитель
b366f11b9a
Коммит
f396a4d231
|
@ -23,6 +23,9 @@ static inline void arch_kgdb_breakpoint(void)
|
||||||
__asm__ __volatile__("brki r16, 0x18;");
|
__asm__ __volatile__("brki r16, 0x18;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct pt_regs;
|
||||||
|
asmlinkage void microblaze_kgdb_break(struct pt_regs *regs);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __MICROBLAZE_KGDB_H__ */
|
#endif /* __MICROBLAZE_KGDB_H__ */
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/asm-offsets.h>
|
#include <asm/asm-offsets.h>
|
||||||
|
#include <asm/kgdb.h>
|
||||||
#include <asm/pvr.h>
|
#include <asm/pvr.h>
|
||||||
|
|
||||||
#define GDB_REG 0
|
#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];
|
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)
|
if (kgdb_handle_exception(1, SIGTRAP, 0, regs) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче