aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kdb.h
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2010-08-23 10:20:14 -0400
committerJason Wessel <jason.wessel@windriver.com>2010-10-22 16:34:12 -0400
commit91b152aa85bbcf076e269565394c31964f940371 (patch)
tree32b2a8684877a15b050ef21c8ddcd583b695538d /include/linux/kdb.h
parent75d14edee5689716b55afe467acfc13206a31f95 (diff)
kdb,kgdb: fix sparse fixups
Fix the following sparse warnings: kdb_main.c:328:5: warning: symbol 'kdbgetu64arg' was not declared. Should it be static? kgdboc.c:246:12: warning: symbol 'kgdboc_early_init' was not declared. Should it be static? kgdb.c:652:26: warning: incorrect type in argument 1 (different address spaces) kgdb.c:652:26: expected void const *ptr kgdb.c:652:26: got struct perf_event *[noderef] <asn:3>*pev The one in kgdb.c required the (void * __force) because of the return code from register_wide_hw_breakpoint looking like: return (void __percpu __force *)ERR_PTR(err); Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'include/linux/kdb.h')
-rw-r--r--include/linux/kdb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h
index deda197ced62..aadff7cc2b84 100644
--- a/include/linux/kdb.h
+++ b/include/linux/kdb.h
@@ -139,6 +139,14 @@ int kdb_process_cpu(const struct task_struct *p)
139 139
140/* kdb access to register set for stack dumping */ 140/* kdb access to register set for stack dumping */
141extern struct pt_regs *kdb_current_regs; 141extern struct pt_regs *kdb_current_regs;
142#ifdef CONFIG_KALLSYMS
143extern const char *kdb_walk_kallsyms(loff_t *pos);
144#else /* ! CONFIG_KALLSYMS */
145static inline const char *kdb_walk_kallsyms(loff_t *pos)
146{
147 return NULL;
148}
149#endif /* ! CONFIG_KALLSYMS */
142 150
143/* Dynamic kdb shell command registration */ 151/* Dynamic kdb shell command registration */
144extern int kdb_register(char *, kdb_func_t, char *, char *, short); 152extern int kdb_register(char *, kdb_func_t, char *, char *, short);