Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Davidlohr Bueso and committed by
Linus Torvalds
be2a7fce 02d699f1

+1 -2
+1 -2
arch/arc/kernel/troubleshoot.c
··· 52 52 print_reg_file(&(cregs->r13), 13); 53 53 } 54 54 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) 56 56 { 57 57 struct path path; 58 58 char *path_nm = NULL; ··· 77 77 done: 78 78 pr_info("Path: %s\n", path_nm); 79 79 } 80 - EXPORT_SYMBOL(print_task_path_n_nm); 81 80 82 81 static void show_faulting_vma(unsigned long address, char *buf) 83 82 {