From a6ed6964a2a1d467c1201c54e52e357f3012d95c Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 15 Mar 2017 16:17:19 -0700 Subject: [PATCH] compel ppc64 infect.c: fix clang compilation This is generated by clang-3.8: > compel/arch/ppc64/src/lib/infect.c:31:20: error: unused function > '__check_code_syscall' [-Werror,-Wunused-function] > static inline void __check_code_syscall(void) > ^ The fix is the same as in commit 3ea2fd7. Signed-off-by: Kir Kolyshkin Signed-off-by: Andrei Vagin --- compel/arch/ppc64/src/lib/infect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compel/arch/ppc64/src/lib/infect.c b/compel/arch/ppc64/src/lib/infect.c index 32175174b..81125885d 100644 --- a/compel/arch/ppc64/src/lib/infect.c +++ b/compel/arch/ppc64/src/lib/infect.c @@ -28,7 +28,7 @@ const uint32_t code_syscall[] = { 0x0fe00000 /* twi 31,0,0 */ }; -static inline void __check_code_syscall(void) +static inline __always_unused void __check_code_syscall(void) { BUILD_BUG_ON(sizeof(code_syscall) != BUILTIN_SYSCALL_SIZE); BUILD_BUG_ON(!is_log2(sizeof(code_syscall)));