Title: [9838] trunk: ptrace: unify show_regs() prototype

Diff

Modified: trunk/arch/alpha/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/alpha/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/alpha/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -72,7 +72,6 @@
 #define user_mode(regs) (((regs)->ps & 8) != 0)
 #define instruction_pointer(regs) ((regs)->pc)
 #define profile_pc(regs) instruction_pointer(regs)
-extern void show_regs(struct pt_regs *);
 
 #define task_pt_regs(task) \
   ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)

Modified: trunk/arch/avr32/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/avr32/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/avr32/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -132,8 +132,6 @@
 #define instruction_pointer(regs)       ((regs)->pc)
 #define profile_pc(regs)                instruction_pointer(regs)
 
-extern void show_regs (struct pt_regs *);
-
 static __inline__ int valid_user_regs(struct pt_regs *regs)
 {
 	/*

Modified: trunk/arch/blackfin/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/blackfin/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/blackfin/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -105,7 +105,6 @@
 #define instruction_pointer(regs) ((regs)->pc)
 #define user_stack_pointer(regs)  ((regs)->usp)
 #define profile_pc(regs) instruction_pointer(regs)
-extern void show_regs(struct pt_regs *);
 
 #define arch_has_single_step()	(1)
 extern void user_enable_single_step(struct task_struct *child);

Modified: trunk/arch/cris/include/arch-v10/arch/ptrace.h (9837 => 9838)


--- trunk/arch/cris/include/arch-v10/arch/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/cris/include/arch-v10/arch/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -112,7 +112,6 @@
 #define user_mode(regs) (((regs)->dccr & 0x100) != 0)
 #define instruction_pointer(regs) ((regs)->irp)
 #define profile_pc(regs) instruction_pointer(regs)
-extern void show_regs(struct pt_regs *);
 
 #endif  /*  __KERNEL__  */
 

Modified: trunk/arch/cris/include/arch-v32/arch/ptrace.h (9837 => 9838)


--- trunk/arch/cris/include/arch-v32/arch/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/cris/include/arch-v32/arch/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -111,7 +111,6 @@
 #define arch_has_single_step() (1)
 #define user_mode(regs) (((regs)->ccs & (1 << (U_CCS_BITNR + CCS_SHIFT))) != 0)
 #define instruction_pointer(regs) ((regs)->erp)
-extern void show_regs(struct pt_regs *);
 #define profile_pc(regs) instruction_pointer(regs)
 
 #endif  /*  __KERNEL__  */

Modified: trunk/arch/frv/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/frv/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/frv/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -78,7 +78,6 @@
 #define user_stack_pointer(regs)	((regs)->sp)
 
 extern unsigned long user_stack(const struct pt_regs *);
-extern void show_regs(struct pt_regs *);
 #define profile_pc(regs) ((regs)->pc)
 
 #define task_pt_regs(task) ((task)->thread.frame0)

Modified: trunk/arch/h8300/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/h8300/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/h8300/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -60,7 +60,6 @@
 #define user_mode(regs) (!((regs)->ccr & PS_S))
 #define instruction_pointer(regs) ((regs)->pc)
 #define profile_pc(regs) instruction_pointer(regs)
-extern void show_regs(struct pt_regs *);
 #endif /* __KERNEL__ */
 #endif /* __ASSEMBLY__ */
 #endif /* _H8300_PTRACE_H */

Modified: trunk/arch/ia64/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/ia64/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/ia64/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -286,7 +286,6 @@
   struct task_struct;			/* forward decl */
   struct unw_frame_info;		/* forward decl */
 
-  extern void show_regs (struct pt_regs *);
   extern void ia64_do_show_stack (struct unw_frame_info *, void *);
   extern unsigned long ia64_get_user_rbs_end (struct task_struct *, struct pt_regs *,
 					      unsigned long *);

Modified: trunk/arch/m32r/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/m32r/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/m32r/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -138,8 +138,6 @@
 #define instruction_pointer(regs) ((regs)->bpc)
 #define profile_pc(regs) instruction_pointer(regs)
 
-extern void show_regs(struct pt_regs *);
-
 extern void withdraw_debug_trap(struct pt_regs *regs);
 
 #define task_pt_regs(task) \

Modified: trunk/arch/m68k/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/m68k/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/m68k/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -85,7 +85,6 @@
 #define user_mode(regs) (!((regs)->sr & PS_S))
 #define instruction_pointer(regs) ((regs)->pc)
 #define profile_pc(regs) instruction_pointer(regs)
-extern void show_regs(struct pt_regs *);
 
 #define arch_has_single_step()	(1)
 

Modified: trunk/arch/microblaze/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/microblaze/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/microblaze/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -61,8 +61,6 @@
 #define instruction_pointer(regs)	((regs)->pc)
 #define profile_pc(regs)		instruction_pointer(regs)
 
-void show_regs(struct pt_regs *);
-
 #else /* __KERNEL__ */
 
 /* pt_regs offsets used by gdbserver etc in ptrace syscalls */

Modified: trunk/arch/mn10300/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/mn10300/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/mn10300/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -89,7 +89,6 @@
 #define user_mode(regs)			(((regs)->epsw & EPSW_nSL) == EPSW_nSL)
 #define instruction_pointer(regs)	((regs)->pc)
 #define user_stack_pointer(regs)	((regs)->sp)
-extern void show_regs(struct pt_regs *);
 
 #define arch_has_single_step()	(1)
 

Modified: trunk/arch/parisc/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/parisc/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/parisc/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -56,7 +56,6 @@
 #define instruction_pointer(regs)	((regs)->iaoq[0] & ~3)
 #define user_stack_pointer(regs)	((regs)->gr[30])
 unsigned long profile_pc(struct pt_regs *);
-extern void show_regs(struct pt_regs *);
 
 
 #endif /* __KERNEL__ */

Modified: trunk/arch/powerpc/include/asm/system.h (9837 => 9838)


--- trunk/arch/powerpc/include/asm/system.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/powerpc/include/asm/system.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -120,7 +120,6 @@
 		    unsigned long error_code);
 #endif
 extern void print_backtrace(unsigned long *);
-extern void show_regs(struct pt_regs * regs);
 extern void flush_instruction_cache(void);
 extern void hard_reset_now(void);
 extern void poweroff_now(void);

Modified: trunk/arch/s390/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/s390/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/s390/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -539,7 +539,6 @@
  * These are defined as per linux/ptrace.h, which see.
  */
 #define arch_has_single_step()	(1)
-extern void show_regs(struct pt_regs * regs);
 
 #define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
 #define instruction_pointer(regs) ((regs)->psw.addr & PSW_ADDR_INSN)

Modified: trunk/arch/sh/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/sh/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/sh/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -44,8 +44,6 @@
 #define kernel_stack_pointer(_regs)	((unsigned long)(_regs)->regs[15])
 #define instruction_pointer(regs)	((unsigned long)(regs)->pc)
 
-extern void show_regs(struct pt_regs *);
-
 #define arch_has_single_step()	(1)
 
 /*

Modified: trunk/arch/sparc/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/sparc/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/sparc/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -212,7 +212,6 @@
 #else
 #define profile_pc(regs) instruction_pointer(regs)
 #endif
-extern void show_regs(struct pt_regs *);
 #endif /* (__KERNEL__) */
 
 #else /* __ASSEMBLY__ */
@@ -256,7 +255,6 @@
 #define instruction_pointer(regs) ((regs)->pc)
 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
 unsigned long profile_pc(struct pt_regs *);
-extern void show_regs(struct pt_regs *);
 #endif /* (__KERNEL__) */
 
 #else /* (!__ASSEMBLY__) */

Modified: trunk/arch/tile/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/tile/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/tile/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -112,8 +112,6 @@
 /* Trace the current syscall. */
 extern void do_syscall_trace(void);
 
-extern void show_regs(struct pt_regs *);
-
 #define arch_has_single_step()	(1)
 
 /*

Modified: trunk/arch/um/include/asm/ptrace-generic.h (9837 => 9838)


--- trunk/arch/um/include/asm/ptrace-generic.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/um/include/asm/ptrace-generic.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -47,8 +47,6 @@
 extern int set_fpregs(struct user_i387_struct __user *buf,
 		      struct task_struct *child);
 
-extern void show_regs(struct pt_regs *regs);
-
 extern int arch_copy_tls(struct task_struct *new);
 extern void clear_flushed_tls(struct task_struct *task);
 

Modified: trunk/arch/x86/include/asm/kdebug.h (9837 => 9838)


--- trunk/arch/x86/include/asm/kdebug.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/x86/include/asm/kdebug.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -29,7 +29,6 @@
 extern void show_trace(struct task_struct *t, struct pt_regs *regs,
 		       unsigned long *sp);
 extern void __show_regs(struct pt_regs *regs, int all);
-extern void show_regs(struct pt_regs *regs);
 extern unsigned long oops_begin(void);
 extern void oops_end(unsigned long, struct pt_regs *, int signr);
 #ifdef CONFIG_KEXEC

Modified: trunk/arch/xtensa/include/asm/ptrace.h (9837 => 9838)


--- trunk/arch/xtensa/include/asm/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/arch/xtensa/include/asm/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -120,7 +120,6 @@
   (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1)
 # define user_mode(regs) (((regs)->ps & 0x00000020)!=0)
 # define instruction_pointer(regs) ((regs)->pc)
-extern void show_regs(struct pt_regs *);
 
 # ifndef CONFIG_SMP
 #  define profile_pc(regs) instruction_pointer(regs)

Modified: trunk/include/linux/ptrace.h (9837 => 9838)


--- trunk/include/linux/ptrace.h	2011-04-14 21:50:04 UTC (rev 9837)
+++ trunk/include/linux/ptrace.h	2011-04-15 01:08:01 UTC (rev 9838)
@@ -100,6 +100,7 @@
 #include <linux/sched.h>		/* For struct task_struct.  */
 
 
+extern void show_regs(struct pt_regs *);
 extern long arch_ptrace(struct task_struct *child, long request,
 			unsigned long addr, unsigned long data);
 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to