kcsan: Remove reporting indirection
authorMark Rutland <mark.rutland@arm.com>
Wed, 14 Apr 2021 11:28:22 +0000 (13:28 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 May 2021 17:58:15 +0000 (10:58 -0700)
commit19dfdc05ffed960024e175db21c8e11ef96daeee
treedb1544dada5666202d2325aad09d8e36d2e23f09
parent39b2e763f2defe326e960daefb7fe6acbb2a95b1
kcsan: Remove reporting indirection

Now that we have separate kcsan_report_*() functions, we can factor the
distinct logic for each of the report cases out of kcsan_report(). While
this means each case has to handle mutual exclusion independently, this
minimizes the conditionality of code and makes it easier to read, and
will permit passing distinct bits of information to print_report() in
future.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[ elver@google.com: retain comment about lockdep_off() ]
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/report.c