Unlike most patches, we do not add a DECLARE_CRYPTO_API() wrapper for the exported function in crypto/jitterentropy.h. This is because this header is used by both jitterentropy_rng.o and jitterentropy-testing.o, but the compilation flags for jitterentropy_rng.o do not support declaration of a static call key.
This is acceptable since the only user of this exported function is jitterentropy_rng.o itself. The jitterentropy-testing.o code will naturally either be included alongside jitterentropy_rng.o in the crypto kernel module, or it will be disabled. Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/Makefile b/crypto/Makefile index 66319c92a983..d1db3a1e3b3b 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -169,7 +169,7 @@ CFLAGS_jitterentropy.o = -O0 KASAN_SANITIZE_jitterentropy.o = n UBSAN_SANITIZE_jitterentropy.o = n jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o -obj-$(CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE) += jitterentropy-testing.o +crypto-objs-$(CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE) += jitterentropy-testing.o obj-$(CONFIG_CRYPTO_BENCHMARK) += tcrypt.o crypto-objs-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o crypto-objs-$(CONFIG_CRYPTO_USER_API) += af_alg.o -- 2.47.3
