From: Rasmus Villemoes Date: Thu, 12 Sep 2019 22:19:23 +0000 (+0200) Subject: lib/zstd/mem.h: replace __inline by inline X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4bd92428e717fc6bc29ffa4fdb38b68395b96684;p=openwrt%2Fstaging%2Fblogic.git lib/zstd/mem.h: replace __inline by inline Currently, compiler_types.h #defines __inline as inline (and further #defines inline to automatically attach some attributes), so this does not change functionality. It serves as preparation for removing the #define of __inline. While at it, also remove the __attribute__((unused)) - it's already included in the definition of the inline macro, and "open-coded" __attribute__(()) should be avoided. Since commit a95b37e20db9 (kbuild: get out of ), compiler_types.h is automatically included by all kernel C code - i.e., the definition of inline including the unused attribute is guaranteed to be in effect whenever ZSTD_STATIC is expanded. Signed-off-by: Rasmus Villemoes Signed-off-by: Miguel Ojeda --- diff --git a/lib/zstd/mem.h b/lib/zstd/mem.h index 3a0f34c8706c..93d7a2c377fe 100644 --- a/lib/zstd/mem.h +++ b/lib/zstd/mem.h @@ -27,7 +27,7 @@ /*-**************************************** * Compiler specifics ******************************************/ -#define ZSTD_STATIC static __inline __attribute__((unused)) +#define ZSTD_STATIC static inline /*-************************************************************** * Basic Types