On Thu, 1 Feb 2024 at 07:46, Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote: > > arch/alpha/include/asm/ptrace.h | 1 + > arch/arc/include/asm/ptrace.h | 1 + > arch/arm/include/asm/ptrace.h | 1 + > arch/csky/include/asm/ptrace.h | 1 + > arch/hexagon/include/uapi/asm/ptrace.h | 1 + > arch/loongarch/include/asm/ptrace.h | 1 + > arch/m68k/include/asm/ptrace.h | 1 + > arch/microblaze/include/asm/ptrace.h | 3 ++- > arch/mips/include/asm/ptrace.h | 2 ++ > arch/mips/kernel/ptrace.c | 7 +++++++ > arch/nios2/include/asm/ptrace.h | 3 ++- > arch/openrisc/include/asm/ptrace.h | 1 + > arch/parisc/include/asm/ptrace.h | 1 + > arch/s390/include/asm/ptrace.h | 1 + > arch/sparc/include/asm/ptrace.h | 2 ++ > arch/um/include/asm/ptrace-generic.h | 1 + > mm/memory.c | 4 ++-- > 17 files changed, 28 insertions(+), 4 deletions(-) The only user right now is mm/memory.c, and it doesn't even include <asm/ptrace.h>, but instead does the proper thing and includes <linux/ptrace.h> So please make <linux/ptrace.h> just do #ifndef exception_ip #define exception_ip(x) instruction_pointer(x) #endif and all those non-MIPS architecture updates should just go away, and the diffstat should look something like arch/mips/kernel/ptrace.c | 7 +++++++ include/linux/ptrace.h | 4 ++++ mm/memory.c | 4 ++-- instead. Linus