From 6f554e48e8b07fe5655f151f2578a4c8625d6b8a Mon Sep 17 00:00:00 2001 From: Sergiu Moga Date: Wed, 19 Mar 2025 17:14:10 +0200 Subject: [PATCH] lib/syscall_shim: Remove unnecessary `__used` from execenv variants The `__used` attribute in not necessary as we are fine with any of these potentially being optimised away. Signed-off-by: Sergiu Moga Approved-by: Michalis Pappas Reviewed-by: Michalis Pappas Reviewed-by: Andrei Tatar GitHub-Closes: #1618 --- lib/syscall_shim/include/uk/syscall.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/syscall_shim/include/uk/syscall.h b/lib/syscall_shim/include/uk/syscall.h index 262f45dc3..81b9b5cde 100644 --- a/lib/syscall_shim/include/uk/syscall.h +++ b/lib/syscall_shim/include/uk/syscall.h @@ -454,7 +454,7 @@ typedef long uk_syscall_arg_t; #define __UK_LLSYSCALL_R_E_DEFINE(x, rtype, name, ename, rname, doname, ...)\ long rname(long _execenv); \ - long __used ename(long _execenv) \ + long ename(long _execenv) \ { \ long ret; \ \ @@ -468,7 +468,7 @@ typedef long uk_syscall_arg_t; static inline rtype __##rname(UK_EXECENV_DECLMAPx(UK_S_EXECENV_ARG_ACTUAL,\ x, UK_S_ARG_ACTUAL,\ __VA_ARGS__)); \ - long __used rname(long _execenv) \ + long rname(long _execenv) \ { \ struct ukarch_execenv *execenv; \ long ret; \ @@ -488,7 +488,7 @@ typedef long uk_syscall_arg_t; return ret; \ } \ \ - long __used doname(long _execenv) \ + long doname(long _execenv) \ { \ struct ukarch_execenv *execenv; \ long ret; \ @@ -503,7 +503,7 @@ typedef long uk_syscall_arg_t; \ return ret; \ } \ - static inline rtype __used __##rname(UK_EXECENV_DECLMAPx( \ + static inline rtype __##rname(UK_EXECENV_DECLMAPx( \ UK_S_EXECENV_ARG_ACTUAL_MAYBE_UNUSED,\ x, UK_S_ARG_ACTUAL_MAYBE_UNUSED,\ __VA_ARGS__)) -- 2.39.5