riscv: Improve kasan definitions
authorAlexandre Ghiti <alex@ghiti.fr>
Mon, 8 Feb 2021 19:30:14 +0000 (14:30 -0500)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 23 Feb 2021 02:44:53 +0000 (18:44 -0800)
commit7899ed260c348fe8813150c12c7a59fa0e3e9121
tree5b97bec0b564db245034126bd6923f1efad7e1e2
parent0f02de4481da684aad6589aed0ea47bd1ab391c9
riscv: Improve kasan definitions

There is no functional change here, only improvement in code readability
by adding comments to explain where the kasan constants come from and by
replacing hardcoded numerical constant by the corresponding define.

Note that the comments come from arm64.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/kasan.h