From: Joe Fradley Date: Tue, 22 Nov 2022 22:54:49 +0000 (-0800) Subject: crypto: x86/curve25519 - disable gcov X-Git-Tag: v6.2-rc1~87^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c390c452ebeb44cb979b7374d3acc3859415e86c;p=thirdparty%2Fkernel%2Flinux.git crypto: x86/curve25519 - disable gcov curve25519-x86_64.c fails to build when CONFIG_GCOV_KERNEL is enabled. The error is "inline assembly requires more registers than available" thrown from the `fsqr()` function. Therefore, excluding this file from GCOV profiling until this issue is resolved. Thereby allowing CONFIG_GCOV_PROFILE_ALL to be enabled for x86. Signed-off-by: Joe Fradley Signed-off-by: Herbert Xu --- diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 3b1d701a4f6c5..3e7a329235bdb 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -107,3 +107,6 @@ quiet_cmd_perlasm = PERLASM $@ cmd_perlasm = $(PERL) $< > $@ $(obj)/%.S: $(src)/%.pl FORCE $(call if_changed,perlasm) + +# Disable GCOV in odd or sensitive code +GCOV_PROFILE_curve25519-x86_64.o := n