Message ID | 1395766541-23979-15-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: > > mm.c:148:20: error: unused function 'check_memory_layout_alignment_constraints' [-Werror,-Wunused-function] > static inline void check_memory_layout_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/mm.c b/xen/arch/arm/mm.c index d66ce85..fc58fc6 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -144,7 +144,8 @@ unsigned long total_pages; extern char __init_begin[], __init_end[]; /* Checking VA memory layout alignment. */ -static inline void check_memory_layout_alignment_constraints(void) { +static inline always_unused void check_memory_layout_alignment_constraints(void) +{ /* 2MB aligned regions */ BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK); BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
Fix compilation with Clang 3.5: mm.c:148:20: error: unused function 'check_memory_layout_alignment_constraints' [-Werror,-Wunused-function] static inline void check_memory_layout_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/mm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)