diff --git a/arch/aarch64/crtools.c b/arch/aarch64/crtools.c index 13668cdb5..90af289e7 100644 --- a/arch/aarch64/crtools.c +++ b/arch/aarch64/crtools.c @@ -30,13 +30,12 @@ const char code_syscall[] = { const int code_syscall_size = round_up(sizeof(code_syscall), sizeof(long)); -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))); } - void parasite_setup_regs(unsigned long new_ip, void *stack, user_regs_struct_t *regs) { regs->pc = new_ip; diff --git a/arch/arm/crtools.c b/arch/arm/crtools.c index a5420b197..b692a7fb5 100644 --- a/arch/arm/crtools.c +++ b/arch/arm/crtools.c @@ -30,13 +30,12 @@ const char code_syscall[] = { const int code_syscall_size = round_up(sizeof(code_syscall), sizeof(long)); -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))); } - void parasite_setup_regs(unsigned long new_ip, void *stack, user_regs_struct_t *regs) { regs->ARM_pc = new_ip; diff --git a/arch/x86/crtools.c b/arch/x86/crtools.c index d721ac8a3..5ecb609b4 100644 --- a/arch/x86/crtools.c +++ b/arch/x86/crtools.c @@ -33,7 +33,7 @@ const char code_syscall[] = { const int code_syscall_size = round_up(sizeof(code_syscall), sizeof(long)); -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)));