Commit 666fcf4f authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

ppc64/crtools.c: fix compilation with clang

For gcc, having "inline" is enough to suppress the "unused function"
warning. For clang, we have to do better than that.

See also: commit 4241078 ("zdtm: compile fix for clang") and
commit 3ea2fd78 ("crtools.c: fix compilation by clang").

travis-ci: success for PPC+clang compile fixes
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 0ceb5368
......@@ -47,7 +47,7 @@ const u32 code_syscall[] = {
0x0fe00000 /* twi 31,0,0 */
};
static inline void __check_code_syscall(void)
static inline void __always_unused __check_code_syscall(void)
{
BUILD_BUG_ON(sizeof(code_syscall) != BUILTIN_SYSCALL_SIZE);
BUILD_BUG_ON(!is_log2(sizeof(code_syscall)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment