From e7eff65e74ebe268a184d53d5fe94ebff5f7b4eb Mon Sep 17 00:00:00 2001 From: Tyrel Datwyler Date: Wed, 7 Feb 2024 14:13:30 -0800 Subject: [PATCH] librtas: deprecate rtas_delay_timeout() Despite its description rtas_delay_timeout() sets an internal timeout value as opposed to returning the delay time as documented. This timeout short cuts the logic in handle_delay(). Fortunately this is unsed by default. The library should run operations to completion, otherwise we risk leaving things in an unrecoverable state. Mark rtas_delay_timeout() with __attribute__ ((deprecated)) as preperation for eventual removal. Signed-off-by: Tyrel Datwyler --- librtas_src/syscall_calls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librtas_src/syscall_calls.c b/librtas_src/syscall_calls.c index b28af2d..a7feefe 100644 --- a/librtas_src/syscall_calls.c +++ b/librtas_src/syscall_calls.c @@ -333,6 +333,7 @@ int rtas_cfg_connector(char *workarea) * @param timeout_ms timeout in milli-seconds * @return delay time */ +__attribute__ ((deprecated)) int rtas_delay_timeout(uint64_t timeout_ms) { int rc;