summaryrefslogtreecommitdiff
path: root/include/net/proto_memory.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-12-08 21:06:58 +0100
committerIngo Molnar <mingo@kernel.org>2025-12-12 10:26:13 +0100
commitb5e51ef787660bffe9cd059e7abe32f3b1667a98 (patch)
tree24ae1ec5b52f72669b8b0dd54e680b2a136cbe14 /include/net/proto_memory.h
parent0048fbb4011ec55c32d3148b2cda56433f273375 (diff)
bug: Let report_bug_entry() provide the correct bugaddr
report_bug_entry() always provides zero for bugaddr but could easily extract the correct address from the provided bug_entry. Just do that to have proper warning messages. E.g. adding an artificial: void foo(void) { WARN_ONCE(1, "bar"); } function generates this warning message: WARNING: arch/s390/kernel/setup.c:1017 at 0x0, CPU#0: swapper/0/0 ^^^ With the correct bug address this changes to: WARNING: arch/s390/kernel/setup.c:1017 at foo+0x1c/0x40, CPU#0: swapper/0/0 ^^^^^^^^^^^^^ Fixes: 7d2c27a0ec5e ("bug: Add report_bug_entry()") Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20251208200658.3431511-1-hca@linux.ibm.com
Diffstat (limited to 'include/net/proto_memory.h')
0 files changed, 0 insertions, 0 deletions