[PATCH] fixup! pbl: export pbl_barebox_verify

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Aug 21 06:28:58 PDT 2022


crypto: digest: always export functions for PBL

We already build the digest functions for PBL, but the configuration may
lack CONFIG_DIGEST, which leads to compile errors due to clashes between
the static inline helpers and the actual definitions. Fix this.

Reported-by: Antony Pavlov <antonynpavlov at gmail.com>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/digest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/digest.h b/include/digest.h
index e4a521696434..b984d57d778e 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -76,7 +76,7 @@ struct digest {
 /*
  * digest functions
  */
-#ifdef CONFIG_DIGEST
+#if defined(CONFIG_DIGEST) || defined(__PBL__)
 int digest_algo_register(struct digest_algo *d);
 void digest_algo_unregister(struct digest_algo *d);
 void digest_algo_prints(const char *prefix);
-- 
2.30.2




More information about the barebox mailing list