riscv: Select ARCH_WANTS_NO_INSTR
authorJisheng Zhang <jszhang@kernel.org>
Thu, 23 Nov 2023 14:22:23 +0000 (22:22 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 10 Jan 2024 04:10:16 +0000 (20:10 -0800)
commitcfbc4f81c9d0ea7d6b6726d55a93e859f51ef196
tree14c5b2f4ec999526165c15b29ea46e8d63df8f39
parent5634d9c280d2c91f1759054bcb8c2a4b0abb73c8
riscv: Select ARCH_WANTS_NO_INSTR

As said in the help of ARCH_WANTS_NO_INSTR entry in arch/Kconfig:
"An architecture should select this if the noinstr macro is being used on
functions to denote that the toolchain should avoid instrumenting such
functions and is required for correctness."

Select ARCH_WANTS_NO_INSTR for correctness.

PS: The reason we didn't find any issue so far is that the
CC_HAS_NO_PROFILE_FN_ATTR is true.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20231123142223.1787-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig