OSDN Git Service

lib/zstd/mem.h: replace __inline by inline
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 12 Sep 2019 22:19:23 +0000 (00:19 +0200)
committer0ranko0P <ranko0p@outlook.com>
Wed, 5 Feb 2020 10:55:04 +0000 (18:55 +0800)
commitcdae5c6c5bcaee063b04e514a9c3c6d1278e984b
tree4c85b7bd262c77f8b02c9afb381656bb5c2fd426
parent45a36d88036e5b49ba10505ded8d6c644e7b5b86
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 <linux/compiler_types.h> out of
<linux/kconfig.h>), 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 <linux@rasmusvillemoes.dk>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
lib/zstd/mem.h