From 630555d9f6ead7530b3d1e5a5fba96104607550c Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Thu, 6 Jul 2023 12:10:14 +0200 Subject: [PATCH] mbedtls: fix _mbedtls_init() invocation SYS_INIT() requires pointer to function that takes `void` now, instead of pointer to device structure. Since the commit was developed before that switch, it still invoked it with NULL. Fix that now. Fixes: zephyr/modules/mbedtls/zephyr_init.c: In function 'mbedtls_init': zephyr/modules/mbedtls/zephyr_init.c:108:16: error: too many arguments \ to function '_mbedtls_init' 108 | return _mbedtls_init(NULL); | ^~~~~~~~~~~~~ zephyr/modules/mbedtls/zephyr_init.c:86:12: note: declared here 86 | static int _mbedtls_init(void) | Signed-off-by: Marcin Niestroj --- modules/mbedtls/zephyr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mbedtls/zephyr_init.c b/modules/mbedtls/zephyr_init.c index a9351be8f552f8..70f7783e2ee8d4 100644 --- a/modules/mbedtls/zephyr_init.c +++ b/modules/mbedtls/zephyr_init.c @@ -105,5 +105,5 @@ SYS_INIT(_mbedtls_init, POST_KERNEL, 0); */ int mbedtls_init(void) { - return _mbedtls_init(NULL); + return _mbedtls_init(); }