aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-12-18 09:32:57 -0500
committerMichal Simek <michal.simek@xilinx.com>2015-01-05 06:36:42 -0500
commitf396a4d2314bf1cb83148d9b8fc47995e6c27e1f (patch)
treef5c8826e06b0e73c1f3a2222690242e569bb60ee /arch/microblaze
parentb366f11b9a81ad0cc7ed3cbdaca15bb98f96db25 (diff)
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>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/kgdb.h3
-rw-r--r--arch/microblaze/kernel/kgdb.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/kgdb.h b/arch/microblaze/include/asm/kgdb.h
index 78b17d40b235..ad27acb2b15f 100644
--- a/arch/microblaze/include/asm/kgdb.h
+++ b/arch/microblaze/include/asm/kgdb.h
@@ -23,6 +23,9 @@ static inline void arch_kgdb_breakpoint(void)
23 __asm__ __volatile__("brki r16, 0x18;"); 23 __asm__ __volatile__("brki r16, 0x18;");
24} 24}
25 25
26struct pt_regs;
27asmlinkage void microblaze_kgdb_break(struct pt_regs *regs);
28
26#endif /* __ASSEMBLY__ */ 29#endif /* __ASSEMBLY__ */
27#endif /* __MICROBLAZE_KGDB_H__ */ 30#endif /* __MICROBLAZE_KGDB_H__ */
28#endif /* __KERNEL__ */ 31#endif /* __KERNEL__ */
diff --git a/arch/microblaze/kernel/kgdb.c b/arch/microblaze/kernel/kgdb.c
index 09a5e8286137..4bd44b6cbc3b 100644
--- a/arch/microblaze/kernel/kgdb.c
+++ b/arch/microblaze/kernel/kgdb.c
@@ -12,6 +12,7 @@
12#include <linux/io.h> 12#include <linux/io.h>
13#include <asm/cacheflush.h> 13#include <asm/cacheflush.h>
14#include <asm/asm-offsets.h> 14#include <asm/asm-offsets.h>
15#include <asm/kgdb.h>
15#include <asm/pvr.h> 16#include <asm/pvr.h>
16 17
17#define GDB_REG 0 18#define GDB_REG 0
@@ -77,7 +78,7 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs)
77 pt_regb[i] = gdb_regs[i]; 78 pt_regb[i] = gdb_regs[i];
78} 79}
79 80
80void microblaze_kgdb_break(struct pt_regs *regs) 81asmlinkage void microblaze_kgdb_break(struct pt_regs *regs)
81{ 82{
82 if (kgdb_handle_exception(1, SIGTRAP, 0, regs) != 0) 83 if (kgdb_handle_exception(1, SIGTRAP, 0, regs) != 0)
83 return; 84 return;