+ ptrace-unify-show_regs-prototype.patch added to -mm tree
[email protected]
tree noticeThe patch titled
ptrace: unify show_regs() prototype
has been added to the -mm tree. Its filename is
ptrace-unify-show_regs-prototype.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: ptrace: unify show_regs() prototype
From: Mike Frysinger <[email protected]>
---
arch/alpha/include/asm/ptrace.h | 1 - arch/avr32/include/asm/ptrace.h | 2 -- arch/blackfin/include/asm/ptrace.h | 1 - arch/cris/include/arch-v10/arch/ptrace.h | 1 - arch/cris/include/arch-v32/arch/ptrace.h | 1 - arch/frv/include/asm/ptrace.h | 1 - arch/h8300/include/asm/ptrace.h | 1 - arch/ia64/include/asm/ptrace.h | 1 - arch/m32r/include/asm/ptrace.h | 2 -- arch/m68k/include/asm/ptrace.h | 1 - arch/microblaze/include/asm/ptrace.h | 2 -- arch/mn10300/include/asm/ptrace.h | 1 - arch/parisc/include/asm/ptrace.h | 1 - arch/powerpc/include/asm/system.h | 1 - arch/s390/include/asm/ptrace.h | 1 - arch/sh/include/asm/ptrace.h | 2 -- arch/sparc/include/asm/ptrace.h | 2 -- arch/tile/include/asm/ptrace.h | 2 -- arch/um/include/asm/ptrace-generic.h | 2 -- arch/x86/include/asm/kdebug.h | 1 - arch/xtensa/include/asm/ptrace.h | 1 - include/linux/ptrace.h | 1 + 22 files changed, 1 insertion(+), 28 deletions(-)
arch/alpha/include/asm/ptrace.h renamed from arch/alpha/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -72,7 +72,6 @@ struct switch_stack {#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)
arch/avr32/include/asm/ptrace.h renamed from arch/avr32/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -132,8 +132,6 @@ struct pt_regs {#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) {/*
arch/blackfin/include/asm/ptrace.h renamed from arch/blackfin/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -102,7 +102,6 @@ struct pt_regs {/* user_mode returns true if only one bit is set in IPEND, other than the master interrupt enable. */ #define user_mode (regs) (!(((regs)->ipend & ~0x10) & (((regs)->ipend & ~0x10) - 1))) -extern void show_regs (struct pt_regs *);#define arch_has_single_step () (1)/* common code demands this function */
arch/cris/include/arch-v10/arch/ptrace.h renamed from arch/cris/include/arch-v10/arch/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -112,7 +112,6 @@ struct switch_stack {#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__ */
arch/cris/include/arch-v32/arch/ptrace.h renamed from arch/cris/include/arch-v32/arch/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -111,7 +111,6 @@ struct switch_stack {#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__ */
arch/frv/include/asm/ptrace.h renamed from arch/frv/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -78,7 +78,6 @@ register struct pt_regs *__frame asm("gr#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)
arch/h8300/include/asm/ptrace.h renamed from arch/h8300/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -60,7 +60,6 @@ struct pt_regs {#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 */
arch/ia64/include/asm/ptrace.h renamed from arch/ia64/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -286,7 +286,6 @@ static inline unsigned long user_stack_pstruct 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 *);
arch/m32r/include/asm/ptrace.h renamed from arch/m32r/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -138,8 +138,6 @@ extern void init_debug_traps(struct task#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) \
arch/m68k/include/asm/ptrace.h renamed from arch/m68k/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -85,7 +85,6 @@ struct switch_stack {#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)
arch/microblaze/include/asm/ptrace.h renamed from arch/microblaze/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -61,8 +61,6 @@ struct pt_regs {#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 */
arch/mn10300/include/asm/ptrace.h renamed from arch/mn10300/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -89,7 +89,6 @@ struct pt_regs {#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)
arch/parisc/include/asm/ptrace.h renamed from arch/parisc/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -56,7 +56,6 @@ struct pt_regs {#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__ */
arch/powerpc/include/asm/system.h renamed from arch/powerpc/include/asm/system.h~ptrace-unify-show_regs-prototype +0 -1
@@ -120,7 +120,6 @@ extern void do_dabr(struct pt_regs *regs 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 );
arch/s390/include/asm/ptrace.h renamed from arch/s390/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -539,7 +539,6 @@ struct user_regs_struct* 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)
arch/sh/include/asm/ptrace.h renamed from arch/sh/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -45,8 +45,6 @@#define GET_FP (regs) ((regs)->regs[14])#define GET_USP (regs) ((regs)->regs[15]) -extern void show_regs (struct pt_regs *); -#define arch_has_single_step () (1)/*
arch/sparc/include/asm/ptrace.h renamed from arch/sparc/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -212,7 +212,6 @@ extern unsigned long profile_pc(struct p#else #define profile_pc (regs) instruction_pointer(regs)#endif -extern void show_regs (struct pt_regs *);#endif /* (__KERNEL__) */ #else /* __ASSEMBLY__ */
@@ -256,7 +255,6 @@ static inline bool pt_regs_clear_syscall#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__) */
arch/tile/include/asm/ptrace.h renamed from arch/tile/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -2
@@ -112,8 +112,6 @@ struct pt_regs *get_pt_regs(struct pt_re/* Trace the current syscall. */ extern void do_syscall_trace (void ); -extern void show_regs (struct pt_regs *); -#define arch_has_single_step () (1)/*
arch/um/include/asm/ptrace-generic.h renamed from arch/um/include/asm/ptrace-generic.h~ptrace-unify-show_regs-prototype +0 -2
@@ -47,8 +47,6 @@ extern int get_fpregs(struct user_i387_sextern 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);
arch/x86/include/asm/kdebug.h renamed from arch/x86/include/asm/kdebug.h~ptrace-unify-show_regs-prototype +0 -1
@@ -28,7 +28,6 @@ extern void show_registers(struct pt_regextern void show_trace (struct task_struct *t,struct pt_regs *regs,unsigned long *sp,unsigned long bp);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
arch/xtensa/include/asm/ptrace.h renamed from arch/xtensa/include/asm/ptrace.h~ptrace-unify-show_regs-prototype +0 -1
@@ -120,7 +120,6 @@ struct pt_regs { (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)
include/linux/ptrace.h renamed from include/linux/ptrace.h~ptrace-unify-show_regs-prototype +1 -0
@@ -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);
_
Patches currently in -mm which might be from [email protected] are
backlight-new-driver-for-the-adp8870-backlight-devices.patch backlight-new-driver-for-the-adp8870-backlight-devices-v2.patch backlight-add-backlight-type-fix.patch mm-nommuc-fix-remap_pfn_range.patch
linux-next.patch asm-generic-systemh-drop-useless-__kernel__.patch ptrace-unify-show_regs-prototype.patch
Oleg Nesterov
maintainerPATCH 1/1 ptrace-unify-show_regs-prototype-fix
(to fold into ptrace-unify-show_regs-prototype.patch)
No need to declare show_regs() in ptrace.h, sched.h does this.
---
include/linux/ptrace.h | 1 - 1 file changed, 1 deletion(-)
include/linux/ptrace.h renamed from include/linux/ptrace.h~show_regs +0 -1
@@ -100,7 +100,6 @@#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);
Re: [PATCH -mm] ptrace-unify-show_regs-prototype-fix
Quoted 3 lines · On Tuesday, June 07, 2011 13:51:42 Oleg Nesterov wrote:
(to fold into ptrace-unify-show_regs-prototype.patch)
No need to declare
show_regs()inptrace.h,sched.hdoes this.
thanks for getting to this in spite of my laziness in not doing it sooner -mike