linuxkm: add missing WC_NO_ERR_TRACE.

pull/8873/head
jordan 2025-06-13 01:45:47 -05:00
parent bb5291aa5e
commit b6b58a957b
1 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ static int linuxkm_lkcapi_register(void)
if (! alg ## _loaded) { \
ret = (crypto_register_ ## alg_class)(&(alg)); \
if (ret) { \
if (fips_enabled && (ret == NOT_COMPILED_IN)) { \
if (fips_enabled && (ret == WC_NO_ERR_TRACE(NOT_COMPILED_IN))) { \
pr_info("wolfCrypt: skipping FIPS-incompatible alg %s.\n", \
(alg).base.cra_driver_name); \
} \
@ -399,7 +399,7 @@ static int linuxkm_lkcapi_register(void)
} else { \
ret = (tester()); \
if (ret) { \
if (fips_enabled && (ret == NOT_COMPILED_IN)) { \
if (fips_enabled && (ret == WC_NO_ERR_TRACE(NOT_COMPILED_IN))) { \
pr_info("wolfCrypt: skipping FIPS-incompatible alg %s.\n", \
(alg).base.cra_driver_name); \
} \