All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] docs(xeno3): Fix doxygen parsing of COBALT_IMPL_TIME64 wrappers
@ 2026-09-03  8:34 Clara Kowalsky
  2026-09-03  8:34 ` [PATCH 2/3] docs: Fix a2x warning for PDF builds Clara Kowalsky
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Clara Kowalsky @ 2026-09-03  8:34 UTC (permalink / raw)
  To: xenomai; +Cc: jan.kiszka, Clara Kowalsky

The doxygen configuration lacks a definition for COBALT_IMPL_TIME64().
Therefore doxygen does not see the expanded wrapper prototype in
wrappers_time64.c and instead tries to match @param entries against the
macro call.

This raises warnings at doc build such as

lib/cobalt/wrappers_time64.c:42: warning: argument 'clock_id' of command @param is not found in the argument list of COBALT_IMPL_TIME64(int, clock_getres, __clock_getres64,(clockid_t clock_id, struct timespec *tp))

as doxygen is seeing the raw macro form

COBALT_IMPL_TIME64(int, clock_getres, __clock_getres64,
          (clockid_t clock_id, struct timespec *tp))

With the fix, doxygen rewrites the macro to

int clock_getres(clockid_t clock_id, struct timespec *tp)

It uses the first macro argument (return type), the second (function
name) and fourth (parameter list), but ignores the third (alternate
function name, unneeded).
By this, doxygen sees the actual public function prototype.
See #18.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
 doc/doxygen/xeno3prm-common.conf.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/doxygen/xeno3prm-common.conf.in b/doc/doxygen/xeno3prm-common.conf.in
index 71db05686..ee4ede10d 100644
--- a/doc/doxygen/xeno3prm-common.conf.in
+++ b/doc/doxygen/xeno3prm-common.conf.in
@@ -647,6 +647,7 @@ PREDEFINED = DOXYGEN_CPP			\
         "EXPORT_SYMBOL_GPL(symbol)=//"		\
         "DECLARE_BITMAP(symbol, nr)=unsigned long symbol[BITS_TO_LONGS(nr)]" \
 	"COBALT_IMPL(T,I,A)=T I A"		\
+	"COBALT_IMPL_TIME64(T,I,N,A)=T I A"	\
 	"COBALT_DECL(T,P)=T P"			\
 	"COBALT_SYSCALL(N,M,T,A)=T N A"		\
 	"COBALT_SYSCALL_DECL(N,T,A)=T N A"
-- 
2.55.0


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

end of thread, other threads:[~2026-09-08  7:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  8:34 [PATCH 1/3] docs(xeno3): Fix doxygen parsing of COBALT_IMPL_TIME64 wrappers Clara Kowalsky
2026-09-03  8:34 ` [PATCH 2/3] docs: Fix a2x warning for PDF builds Clara Kowalsky
2026-09-07 14:22   ` Jan Kiszka
2026-09-08  7:27     ` Clara Kowalsky
2026-09-08  7:43       ` Jan Kiszka
2026-09-03  8:34 ` [PATCH 3/3] docs: Match actual return type for RTDM doxygen declarations Clara Kowalsky
2026-09-03 10:53   ` Jan Kiszka
2026-09-03 11:32     ` Clara Kowalsky
2026-09-03  9:48 ` [PATCH 1/3] docs(xeno3): Fix doxygen parsing of COBALT_IMPL_TIME64 wrappers Florian Bezdeka
2026-09-03 10:34   ` Clara Kowalsky
2026-09-03 10:58     ` Jan Kiszka
2026-09-04  6:27       ` Florian Bezdeka
2026-09-04 11:52         ` Clara Kowalsky
2026-09-03 11:17     ` Florian Bezdeka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.