diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-08-23 10:20:14 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-10-22 16:34:12 -0400 |
commit | 91b152aa85bbcf076e269565394c31964f940371 (patch) | |
tree | 32b2a8684877a15b050ef21c8ddcd583b695538d /kernel/debug | |
parent | 75d14edee5689716b55afe467acfc13206a31f95 (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 'kernel/debug')
-rw-r--r-- | kernel/debug/kdb/kdb_private.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h index 1921e6e4c0bc..35d69ed1dfb5 100644 --- a/kernel/debug/kdb/kdb_private.h +++ b/kernel/debug/kdb/kdb_private.h | |||
@@ -105,6 +105,7 @@ extern int kdb_getword(unsigned long *, unsigned long, size_t); | |||
105 | extern int kdb_putword(unsigned long, unsigned long, size_t); | 105 | extern int kdb_putword(unsigned long, unsigned long, size_t); |
106 | 106 | ||
107 | extern int kdbgetularg(const char *, unsigned long *); | 107 | extern int kdbgetularg(const char *, unsigned long *); |
108 | extern int kdbgetu64arg(const char *, u64 *); | ||
108 | extern char *kdbgetenv(const char *); | 109 | extern char *kdbgetenv(const char *); |
109 | extern int kdbgetaddrarg(int, const char **, int*, unsigned long *, | 110 | extern int kdbgetaddrarg(int, const char **, int*, unsigned long *, |
110 | long *, char **); | 111 | long *, char **); |
@@ -216,14 +217,6 @@ extern void kdb_ps1(const struct task_struct *p); | |||
216 | extern void kdb_print_nameval(const char *name, unsigned long val); | 217 | extern void kdb_print_nameval(const char *name, unsigned long val); |
217 | extern void kdb_send_sig_info(struct task_struct *p, struct siginfo *info); | 218 | extern void kdb_send_sig_info(struct task_struct *p, struct siginfo *info); |
218 | extern void kdb_meminfo_proc_show(void); | 219 | extern void kdb_meminfo_proc_show(void); |
219 | #ifdef CONFIG_KALLSYMS | ||
220 | extern const char *kdb_walk_kallsyms(loff_t *pos); | ||
221 | #else /* ! CONFIG_KALLSYMS */ | ||
222 | static inline const char *kdb_walk_kallsyms(loff_t *pos) | ||
223 | { | ||
224 | return NULL; | ||
225 | } | ||
226 | #endif /* ! CONFIG_KALLSYMS */ | ||
227 | extern char *kdb_getstr(char *, size_t, char *); | 220 | extern char *kdb_getstr(char *, size_t, char *); |
228 | 221 | ||
229 | /* Defines for kdb_symbol_print */ | 222 | /* Defines for kdb_symbol_print */ |