kcsan: Silence -Wmissing-prototypes warning with W=1
authorMarco Elver <elver@google.com>
Tue, 16 Jun 2020 12:36:22 +0000 (14:36 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:04:48 +0000 (12:04 -0700)
commit9dd979bae4cf76558ff816abe83283308fb1ae8c
tree3fe11bc68ff8e03ee4d371c6b76ae13e8627eaee
parent2888557f68db334a3839dcc262264a4c436f576b
kcsan: Silence -Wmissing-prototypes warning with W=1

The functions here should not be forward declared for explicit use
elsewhere in the kernel, as they should only be emitted by the compiler
due to sanitizer instrumentation.  Add forward declarations a line above
their definition to shut up warnings in W=1 builds.

Link: https://lkml.kernel.org/r/202006060103.jSCpnV1g%lkp@intel.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/core.c