diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2014-11-06 09:36:41 -0500 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2014-11-11 10:31:51 -0500 |
commit | 15a42a9bc9ffcff4315a7154313db08c6bf9ef11 (patch) | |
tree | 9ac766d8d3ef79e04ba7378abf6e648c2acb5db7 /include/linux/kdb.h | |
parent | a2e5d188aad31f7177cbd6d9ddaf8cc9aa4affe0 (diff) |
kdb: Rename kdb_repeat_t to kdb_cmdflags_t, cmd_repeat to cmd_flags
We're about to add more options for command behaviour, so let's expand
the meaning of kdb_repeat_t.
So far we just do various renames, there should be no functional changes.
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'include/linux/kdb.h')
-rw-r--r-- | include/linux/kdb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h index 290db1269c4c..e650f79aa414 100644 --- a/include/linux/kdb.h +++ b/include/linux/kdb.h | |||
@@ -17,7 +17,7 @@ typedef enum { | |||
17 | KDB_REPEAT_NONE = 0, /* Do not repeat this command */ | 17 | KDB_REPEAT_NONE = 0, /* Do not repeat this command */ |
18 | KDB_REPEAT_NO_ARGS, /* Repeat the command without arguments */ | 18 | KDB_REPEAT_NO_ARGS, /* Repeat the command without arguments */ |
19 | KDB_REPEAT_WITH_ARGS, /* Repeat the command including its arguments */ | 19 | KDB_REPEAT_WITH_ARGS, /* Repeat the command including its arguments */ |
20 | } kdb_repeat_t; | 20 | } kdb_cmdflags_t; |
21 | 21 | ||
22 | typedef int (*kdb_func_t)(int, const char **); | 22 | typedef int (*kdb_func_t)(int, const char **); |
23 | 23 | ||
@@ -147,7 +147,7 @@ static inline const char *kdb_walk_kallsyms(loff_t *pos) | |||
147 | /* Dynamic kdb shell command registration */ | 147 | /* Dynamic kdb shell command registration */ |
148 | extern int kdb_register(char *, kdb_func_t, char *, char *, short); | 148 | extern int kdb_register(char *, kdb_func_t, char *, char *, short); |
149 | extern int kdb_register_repeat(char *, kdb_func_t, char *, char *, | 149 | extern int kdb_register_repeat(char *, kdb_func_t, char *, char *, |
150 | short, kdb_repeat_t); | 150 | short, kdb_cmdflags_t); |
151 | extern int kdb_unregister(char *); | 151 | extern int kdb_unregister(char *); |
152 | #else /* ! CONFIG_KGDB_KDB */ | 152 | #else /* ! CONFIG_KGDB_KDB */ |
153 | static inline __printf(1, 2) int kdb_printf(const char *fmt, ...) { return 0; } | 153 | static inline __printf(1, 2) int kdb_printf(const char *fmt, ...) { return 0; } |
@@ -156,7 +156,7 @@ static inline int kdb_register(char *cmd, kdb_func_t func, char *usage, | |||
156 | char *help, short minlen) { return 0; } | 156 | char *help, short minlen) { return 0; } |
157 | static inline int kdb_register_repeat(char *cmd, kdb_func_t func, char *usage, | 157 | static inline int kdb_register_repeat(char *cmd, kdb_func_t func, char *usage, |
158 | char *help, short minlen, | 158 | char *help, short minlen, |
159 | kdb_repeat_t repeat) { return 0; } | 159 | kdb_cmdflags_t flags) { return 0; } |
160 | static inline int kdb_unregister(char *cmd) { return 0; } | 160 | static inline int kdb_unregister(char *cmd) { return 0; } |
161 | #endif /* CONFIG_KGDB_KDB */ | 161 | #endif /* CONFIG_KGDB_KDB */ |
162 | enum { | 162 | enum { |