]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/watchpoint: Introduce macros for watchpoint length
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 17 Oct 2019 09:31:58 +0000 (15:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:02 +0000 (16:58 +1100)
commitb811be615cb78c90fca42bbd5b958427d03ba7e0
tree7f3619f689d6823344b7363f5994461d689168f2
parent4e706af3cd8e1d0503c25332b30cad33c97ed442
powerpc/watchpoint: Introduce macros for watchpoint length

We are hadrcoding length everywhere in the watchpoint code. Introduce
macros for the length and use them.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191017093204.7511-2-ravi.bangoria@linux.ibm.com
arch/powerpc/include/asm/hw_breakpoint.h
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/ptrace.c
arch/powerpc/xmon/xmon.c