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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2019-07-04 01:42:15 +02:00
parent 8dbcf826ca
commit 0a688a4454
1 changed files with 4 additions and 0 deletions

View File

@ -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 <execinfo.h>
#endif