Skip to content

Commit a8649fb

Browse files
diandersDaniel Thompson
authored andcommitted
kdb: kdb_current_task shouldn't be exported
The kdb_current_task variable has been declared in "kernel/debug/kdb/kdb_private.h" since 2010 when kdb was added to the mainline kernel. This is not a public header. There should be no reason that kdb_current_task should be exported and there are no in-kernel users that need it. Remove the export. Signed-off-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20191109111623.3.I14b22b5eb15ca8f3812ab33e96621231304dc1f7@changeid Signed-off-by: Daniel Thompson <[email protected]>
1 parent c67c10a commit a8649fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/debug/kdb/kdb_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ int kdb_nextline = 1;
7373
int kdb_state; /* General KDB state */
7474

7575
struct task_struct *kdb_current_task;
76-
EXPORT_SYMBOL(kdb_current_task);
7776
struct pt_regs *kdb_current_regs;
7877

7978
const char *kdb_diemsg;

0 commit comments

Comments
 (0)