From: Sergiu Moga Date: Wed, 19 Mar 2025 15:14:10 +0000 (+0200) Subject: lib/syscall_shim: Remove unnecessary `__used` from execenv variants X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6f554e48e8b07fe5655f151f2578a4c8625d6b8a;p=unikraft%2Funikraft.git 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 --- 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__))