Skip to content

Commit cfbc4f8

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 5634d9c commit cfbc4f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ config RISCV
5959
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
6060
select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL
6161
select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP
62+
select ARCH_WANTS_NO_INSTR
6263
select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE
6364
select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU
6465
select BUILDTIME_TABLE_SORT if MMU

0 commit comments

Comments
 (0)