Message ID | 1395766541-23979-16-git-send-email-julien.grall@linaro.org |
---|---|
State | Deferred, archived |
Headers | show |
On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote: > Fix compilation with clang 3.5: > > traps.c:48:20: error: unused function 'check_stack_alignment_constraints' [-Werror,-Wunused-function] > static inline void check_stack_alignment_constraints(void) { > ^ > > Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index ec43e65..5578688 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -45,7 +45,8 @@ * that both the kernel half of struct cpu_user_regs (which is pushed in * entry.S) and struct cpu_info (which lives at the bottom of a Xen * stack) must be doubleword-aligned in size. */ -static inline void check_stack_alignment_constraints(void) { +static inline always_unused void check_stack_alignment_constraints(void) +{ #ifdef CONFIG_ARM_64 BUILD_BUG_ON((sizeof (struct cpu_user_regs)) & 0xf); BUILD_BUG_ON((offsetof(struct cpu_user_regs, spsr_el1)) & 0xf);
Fix compilation with clang 3.5: traps.c:48:20: error: unused function 'check_stack_alignment_constraints' [-Werror,-Wunused-function] static inline void check_stack_alignment_constraints(void) { ^ Signed-off-by: Julien Grall <julien.grall@linaro.org> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Stefano Stabellini <stefano.stabellini@citrix.com> Cc: Tim Deegan <tim@xen.org> --- xen/arch/arm/traps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)