bug: Factor out a getter for a bug's file line
authorAndrew Scull <ascull@google.com>
Thu, 18 Mar 2021 14:33:08 +0000 (14:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 1 Apr 2021 08:54:37 +0000 (09:54 +0100)
commit26dbc7e299c7ebbb6a95e2c620b21b5280b37c57
tree05f06cc724e5d23532b59b9a357b37e72b735640
parent3ad1a6cb0abc63d036fc866bd7c2c5983516dec5
bug: Factor out a getter for a bug's file line

There is some non-trivial config-based logic to get the file name and
line number associated with a bug. Factor this out to a getter that can
be resused.

Signed-off-by: Andrew Scull <ascull@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210318143311.839894-3-ascull@google.com
include/linux/bug.h
lib/bug.c