summaryrefslogtreecommitdiff
path: root/arch/Kconfig
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko@kernel.org>2021-12-04 23:23:55 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2021-12-17 19:52:33 +0300
commit572a0a647b9b491729d24c083c8410c55bf16326 (patch)
tree5a287a90fe93b2bb89aaa18821609565bdc6d331 /arch/Kconfig
parent50468e4313355b161cac8a5155a45832995b7f25 (diff)
downloadlinux-572a0a647b9b491729d24c083c8410c55bf16326.tar.xz
selftests/sgx: Fix corrupted cpuid macro invocation
The SGX selftest fails to build on tip/x86/sgx: main.c: In function ‘get_total_epc_mem’: main.c:296:17: error: implicit declaration of function ‘__cpuid’ [-Werror=implicit-function-declaration] 296 | __cpuid(&eax, &ebx, &ecx, &edx); | ^~~~~~~ Include cpuid.h and use __cpuid_count() macro in order to fix the compilation issue. [ dhansen: tweak commit message ] Fixes: f0ff2447b861 ("selftests/sgx: Add a new kselftest: Unclobbered_vdso_oversubscribed") Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Reinette Chatre <reinette.chatre@intel.com> Link: https://lkml.kernel.org/r/20211204202355.23005-1-jarkko@kernel.org Cc: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'arch/Kconfig')
0 files changed, 0 insertions, 0 deletions