Move the __unused macro to linux/compiler.h to co-locate it with the other macros that provide syntactic sugar around __attribute__. No functional change intended. Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- lib/libcflat.h | 2 -- lib/linux/compiler.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libcflat.h b/lib/libcflat.h index e619de1..39f4552 100644 --- a/lib/libcflat.h +++ b/lib/libcflat.h @@ -29,8 +29,6 @@ #include <string.h> #include <stdbool.h> -#define __unused __attribute__((__unused__)) - #define xstr(s...) xxstr(s) #define xxstr(s...) #s diff --git a/lib/linux/compiler.h b/lib/linux/compiler.h index 5937b7b..c7fc0cf 100644 --- a/lib/linux/compiler.h +++ b/lib/linux/compiler.h @@ -47,6 +47,7 @@ #define __always_inline inline __attribute__((always_inline)) #define noinline __attribute__((noinline)) +#define __unused __attribute__((__unused__)) static __always_inline void __read_once_size(const volatile void *p, void *res, int size) { -- 2.33.0.309.g3052b89438-goog