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

alpha: make thread_saved_pc static

The only user of thread_saved_pc() in non-arch-specific code was removed
in commit 8243d5597793 ("sched/core: Remove pointless printout in
sched_show_task()"), so it no longer needs to be globally defined for
Alpha and can be made static.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Matt Turner <mattst88@gmail.com>

authored by

Tobias Klauser and committed by
Matt Turner
16dc17ee 77e5bff1

+2 -5
+1 -4
arch/alpha/include/asm/processor.h
··· 40 40 struct thread_struct { }; 41 41 #define INIT_THREAD { } 42 42 43 - /* Return saved PC of a blocked thread. */ 44 - struct task_struct; 45 - extern unsigned long thread_saved_pc(struct task_struct *); 46 - 47 43 /* Do necessary setup to start up a newly executed thread. */ 48 44 struct pt_regs; 49 45 extern void start_thread(struct pt_regs *, unsigned long, unsigned long); 50 46 51 47 /* Free all resources held by a thread. */ 48 + struct task_struct; 52 49 extern void release_thread(struct task_struct *); 53 50 54 51 unsigned long get_wchan(struct task_struct *p);
+1 -1
arch/alpha/kernel/process.c
··· 361 361 * all. -- r~ 362 362 */ 363 363 364 - unsigned long 364 + static unsigned long 365 365 thread_saved_pc(struct task_struct *t) 366 366 { 367 367 unsigned long base = (unsigned long)task_stack_page(t);