mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! pbl: export pbl_barebox_verify
@ 2022-08-21 13:28 Ahmad Fatoum
  2022-08-22  8:52 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2022-08-21 13:28 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@gmail.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-22  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-21 13:28 [PATCH] fixup! pbl: export pbl_barebox_verify Ahmad Fatoum
2022-08-22  8:52 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox