From 0a688a4454fd54fe82a04e5c469ddab2cdc71ec2 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 4 Jul 2019 01:42:15 +0200 Subject: [PATCH] btrfs-progs: kerncompat: define __always_inline conditionally The CI build prints a lot of warnings [CC] btrfs.o In file included from volumes.h:22, from btrfs.c:22: kerncompat.h:39: warning: "__always_inline" redefined #define __always_inline __inline __attribute__ ((__always_inline__)) so define the macro conditionally. Signed-off-by: David Sterba --- kerncompat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kerncompat.h b/kerncompat.h index 08133164..9fdc58e2 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -36,9 +36,13 @@ #ifndef BTRFS_DISABLE_BACKTRACE #define BTRFS_DISABLE_BACKTRACE #endif + +#ifndef __always_inline #define __always_inline __inline __attribute__ ((__always_inline__)) #endif +#endif + #ifndef BTRFS_DISABLE_BACKTRACE #include #endif