Skip to content

Commit be2a7fc

Browse files
Davidlohr Buesotorvalds
authored andcommitted
arc: do not export symbols in troubleshoot.c
print_task_path_n_nm() is local to this file, its only user being show_regs(). Mark the function static and avoid the EXPORT_SYMBOL. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Acked-by: Vineet Gupta <vgupta@synoipsys.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 02d699f commit be2a7fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/arc/kernel/troubleshoot.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void show_callee_regs(struct callee_regs *cregs)
5252
print_reg_file(&(cregs->r13), 13);
5353
}
5454

55-
void print_task_path_n_nm(struct task_struct *tsk, char *buf)
55+
static void print_task_path_n_nm(struct task_struct *tsk, char *buf)
5656
{
5757
struct path path;
5858
char *path_nm = NULL;
@@ -77,7 +77,6 @@ void print_task_path_n_nm(struct task_struct *tsk, char *buf)
7777
done:
7878
pr_info("Path: %s\n", path_nm);
7979
}
80-
EXPORT_SYMBOL(print_task_path_n_nm);
8180

8281
static void show_faulting_vma(unsigned long address, char *buf)
8382
{

0 commit comments

Comments
 (0)