kcsan: Refactor access_info initialization
authorMark Rutland <mark.rutland@arm.com>
Wed, 14 Apr 2021 11:28:21 +0000 (13:28 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 May 2021 17:58:15 +0000 (10:58 -0700)
commit39b2e763f2defe326e960daefb7fe6acbb2a95b1
treeb73e3e48354f9d62e585d67539efe62a80f99c4d
parent97aa6139e1b506795ab19941b1c3851042199788
kcsan: Refactor access_info initialization

In subsequent patches we'll want to split kcsan_report() into distinct
handlers for each report type. The largest bit of common work is
initializing the `access_info`, so let's factor this out into a helper,
and have the kcsan_report_*() functions pass the `aaccess_info` as a
parameter to kcsan_report().

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/report.c