Skip to content

Commit 1b499d0

Browse files
Anton Vorontsovtorvalds
authored andcommitted
printk: Remove kdb_syslog_data
The function is no longer needed, so remove it. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bc792e6 commit 1b499d0

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

kernel/debug/kdb/kdb_private.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ extern char kdb_grep_string[];
205205
extern int kdb_grep_leading;
206206
extern int kdb_grep_trailing;
207207
extern char *kdb_cmds[];
208-
extern void kdb_syslog_data(char *syslog_data[]);
209208
extern unsigned long kdb_task_state_string(const char *);
210209
extern char kdb_task_state_char (const struct task_struct *);
211210
extern unsigned long kdb_task_state(const struct task_struct *p,

kernel/printk.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,21 +1192,6 @@ SYSCALL_DEFINE3(syslog, int, type, char __user *, buf, int, len)
11921192
return do_syslog(type, buf, len, SYSLOG_FROM_CALL);
11931193
}
11941194

1195-
#ifdef CONFIG_KGDB_KDB
1196-
/* kdb dmesg command needs access to the syslog buffer. do_syslog()
1197-
* uses locks so it cannot be used during debugging. Just tell kdb
1198-
* where the start and end of the physical and logical logs are. This
1199-
* is equivalent to do_syslog(3).
1200-
*/
1201-
void kdb_syslog_data(char *syslog_data[4])
1202-
{
1203-
syslog_data[0] = log_buf;
1204-
syslog_data[1] = log_buf + log_buf_len;
1205-
syslog_data[2] = log_buf + log_first_idx;
1206-
syslog_data[3] = log_buf + log_next_idx;
1207-
}
1208-
#endif /* CONFIG_KGDB_KDB */
1209-
12101195
static bool __read_mostly ignore_loglevel;
12111196

12121197
static int __init ignore_loglevel_setup(char *str)

0 commit comments

Comments
 (0)