From 11ecc8f3712a102ebea442d27c026d70822fe6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ju=C5=99ena?= Date: Sun, 2 Nov 2025 19:06:15 +0100 Subject: [PATCH] doc: smf: Fix return type in event sample MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix mismatch between `*_run` function return type and implementation. The run functions return `enum smf_state_result`, but the event-driven sample defined them as void while still returning a value. Signed-off-by: Tomáš Juřena --- doc/services/smf/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/services/smf/index.rst b/doc/services/smf/index.rst index 79d6cf885fa69..eb0de648902a5 100644 --- a/doc/services/smf/index.rst +++ b/doc/services/smf/index.rst @@ -471,7 +471,7 @@ Code:: printk("STATE0\n"); } - static void s0_run(void *o) + static enum smf_state_result s0_run(void *o) { struct s_object *s = (struct s_object *)o; @@ -488,7 +488,7 @@ Code:: printk("STATE1\n"); } - static void s1_run(void *o) + static enum smf_state_result s1_run(void *o) { struct s_object *s = (struct s_object *)o;