linuxkm/lkcapi_glue.c: make the #error message for defined(CONFIG_CRYPTO_FIPS) != defined(HAVE_FIPS) more informative.

This commit is contained in:
Daniel Pouzzner
2026-08-05 13:53:47 -05:00
parent 2f15926139
commit c8dae62769
+5 -1
View File
@@ -38,7 +38,11 @@
* it's a macro hardcoding it to literal 0).
*/
#if defined(CONFIG_CRYPTO_FIPS) != defined(HAVE_FIPS)
#error CONFIG_CRYPTO_MANAGER requires that CONFIG_CRYPTO_FIPS match HAVE_FIPS.
#ifdef HAVE_FIPS
#error CONFIG_CRYPTO_MANAGER requires that CONFIG_CRYPTO_FIPS match HAVE_FIPS (CONFIG_CRYPTO_FIPS unset).
#else
#error CONFIG_CRYPTO_MANAGER requires that CONFIG_CRYPTO_FIPS match HAVE_FIPS (HAVE_FIPS unset).
#endif
#endif
#endif