]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/syscall_shim: Remove unnecessary `__used` from execenv variants
authorSergiu Moga <sergiu@unikraft.io>
Wed, 19 Mar 2025 15:14:10 +0000 (17:14 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 17 Apr 2025 12:33:46 +0000 (12:33 +0000)
The `__used` attribute in not necessary as we are fine with any of
these potentially being optimised away.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1618

lib/syscall_shim/include/uk/syscall.h

index 262f45dc3a2b3e8535139788a360aa2e974104de..81b9b5cde2fe11b502217859bb41e72140ca2e4d 100644 (file)
@@ -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__))