Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f396a4d2 authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <michal.simek@xilinx.com>
parent b366f11b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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__ */
+2 −1
Original line number Diff line number Diff line
@@ -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;