uthread: doc: fix inline documentation
authorJerome Forissier <jerome.forissier@linaro.org>
Tue, 29 Apr 2025 09:57:34 +0000 (11:57 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 1 May 2025 07:19:07 +0000 (09:19 +0200)
Fix Sphinx warnings:

 $ make htmldocs
 [...]
 ./include/uthread.h:56: warning: cannot understand function prototype: 'enum uthread_mutex_state '
 ./include/uthread.h:64: warning: cannot understand function prototype: 'struct uthread_mutex '
 ./include/uthread.h:56: warning: cannot understand function prototype: 'enum uthread_mutex_state '
 ./include/uthread.h:64: warning: cannot understand function prototype: 'struct uthread_mutex '

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Tom Rini <trini@konsulko.com>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/uthread.h

index 89fa552..11a19aa 100644 (file)
@@ -51,7 +51,10 @@ struct uthread {
 };
 
 /**
- * Internal state of a struct uthread_mutex
+ * enum uthread_mutex_state - internal state of a struct uthread_mutex
+ *
+ * @UTHREAD_MUTEX_UNLOCKED: mutex has no owner
+ * @UTHREAD_MUTEX_LOCKED: mutex has one owner
  */
 enum uthread_mutex_state {
        UTHREAD_MUTEX_UNLOCKED = 0,
@@ -59,7 +62,9 @@ enum uthread_mutex_state {
 };
 
 /**
- * Uthread mutex
+ * struct uthread_mutex - a mutex object
+ *
+ * @state: the internal state of the mutex
  */
 struct uthread_mutex {
        enum uthread_mutex_state state;