diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-14 11:03:04 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-14 11:03:04 -0400 |
commit | 8c98abff43616a2a9c208189f86d32cefafbe708 (patch) | |
tree | 82af92043203044bef4822359b4ae30149fd7dd6 /tools/include | |
parent | 09dd39d2d2682729174e40161df67f45c151f307 (diff) |
tools: Make "__always_inline" just "inline" on Android
As the gcc there is producing tons of:
"warning: always_inline function might not be inlinable"
At least on android-ndk-r12/platforms/android-24/arch-arm, so, for the
time being, use this big hammer.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Chris Phlipot <cphlipot0@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-97l3eg3fnk5shmo4rsyyvj2t@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/linux/compiler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index fa7208a32d76..e33fc1df3935 100644 --- a/tools/include/linux/compiler.h +++ b/tools/include/linux/compiler.h | |||
@@ -9,6 +9,17 @@ | |||
9 | # define __always_inline inline __attribute__((always_inline)) | 9 | # define __always_inline inline __attribute__((always_inline)) |
10 | #endif | 10 | #endif |
11 | 11 | ||
12 | #ifdef __ANDROID__ | ||
13 | /* | ||
14 | * FIXME: Big hammer to get rid of tons of: | ||
15 | * "warning: always_inline function might not be inlinable" | ||
16 | * | ||
17 | * At least on android-ndk-r12/platforms/android-24/arch-arm | ||
18 | */ | ||
19 | #undef __always_inline | ||
20 | #define __always_inline inline | ||
21 | #endif | ||
22 | |||
12 | #define __user | 23 | #define __user |
13 | 24 | ||
14 | #ifndef __attribute_const__ | 25 | #ifndef __attribute_const__ |