aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2022-04-03 03:13:55 +0000
committerPalmer Dabbelt <[email protected]>2022-04-20 00:42:08 +0000
commitf81f7861ee2aaa6f652f18e8f622547bdd379724 (patch)
treed7280a72088c45b360cd0934f2a07bba97a7462d /tools/perf/util/c++/clang.cpp
parentLinux 5.18-rc1 (diff)
downloadkernel-f81f7861ee2aaa6f652f18e8f622547bdd379724.tar.gz
kernel-f81f7861ee2aaa6f652f18e8f622547bdd379724.zip
cpuidle: riscv: support non-SMP config
Add <asm/smp.h> for cpuid_to_hartid_map etc. This is needed for both SMP and non-SMP builds, but not having it causes a build error for non-SMP: drivers/cpuidle/cpuidle-riscv-sbi.c: In function 'sbi_cpuidle_init_cpu': drivers/cpuidle/cpuidle-riscv-sbi.c:350:26: error: implicit declaration of function 'cpuid_to_hartid_map' [-Werror=implicit-function-declaration] Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Reviewed-by: Anup Patel <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions