-
- Downloads
bug: Use normal relative pointers in 'struct bug_entry'
With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative pointers are calculated weirdly: based on the beginning of the bug_entry struct address, rather than their respective pointer addresses. Make the relative pointers less surprising to both humans and tools by calculating them the normal way. Signed-off-by:Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Mark Rutland <mark.rutland@arm.com> Acked-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Sven Schnelle <svens@linux.ibm.com> # s390 Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Acked-by:
Catalin Marinas <catalin.marinas@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> [arm64] Link: https://lkml.kernel.org/r/f0e05be797a16f4fc2401eeb88c8450dcbe61df6.1652362951.git.jpoimboe@kernel.org
Showing
- arch/arm64/include/asm/asm-bug.h 2 additions, 2 deletionsarch/arm64/include/asm/asm-bug.h
- arch/powerpc/include/asm/bug.h 8 additions, 6 deletionsarch/powerpc/include/asm/bug.h
- arch/riscv/include/asm/bug.h 2 additions, 2 deletionsarch/riscv/include/asm/bug.h
- arch/s390/include/asm/bug.h 3 additions, 2 deletionsarch/s390/include/asm/bug.h
- arch/x86/include/asm/bug.h 1 addition, 1 deletionarch/x86/include/asm/bug.h
- lib/bug.c 7 additions, 8 deletionslib/bug.c
Loading
Please register or sign in to comment