Currently we calculate hw aligned start and end addresses manually. Replace them with builtin ALIGN_DOWN() and ALIGN() macros. So far end_addr was inclusive but this patch makes it exclusive (by avoiding -1) for better readability. Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Michael Neuling <mikey@neuling.org> Link: https://lore.kernel.org/r/20200514111741.97993-13-ravi.bangoria@linux.ibm.com |
||
|---|---|---|
| .. | ||
| Makefile | ||
| ptrace-adv.c | ||
| ptrace-altivec.c | ||
| ptrace-decl.h | ||
| ptrace-noadv.c | ||
| ptrace-novsx.c | ||
| ptrace-spe.c | ||
| ptrace-tm.c | ||
| ptrace-view.c | ||
| ptrace-vsx.c | ||
| ptrace.c | ||
| ptrace32.c | ||