Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+11
+11
tools/include/linux/compiler.h
··· 9 9 # define __always_inline inline __attribute__((always_inline)) 10 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 23 #define __user 13 24 14 25 #ifndef __attribute_const__