]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1180ca52c1fc9e4c6949f8358bd173a147abd1fe
treeb73e3e48354f9d62e585d67539efe62a80f99c4d
parent8cc5ee8584fafd851f9c5b761a6592131ce00af0
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