Skip to contentSkip to conversation

xen/arm: Add support to build with clang

PATCH In review Julien Grall 5 participants 18 messages Oct 2, 2019 – Oct 3, 2019

lore
Share & tools
lore
#0 lore raw

cover xen/arm: Add support to build with clang

Hi all,

After this series, I am able to build Xen on Arm64 with clang 7.0. There are still some issues when building Xen on Arm32 and also using lld.

Cross-compilation is left outside for now, but this is still a good start for clang (and armclang).

Cheers,

Julien Grall (6):
xen/arm: fix get_cpu_info() when built with clang xen/arm64: bitops: Match the register size with the value size in flsl xen/arm: cpuerrata: Match register size with value size in
check_workaround_*
xen/arm: cpufeature: Match register size with value size in
cpus_have_const_cap
xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused xen/arm: traps: Mark check_stack_alignment_constraints as unused

 xen/arch/arm/mm.c                  |  3 ++-
 xen/arch/arm/traps.c               |  3 ++-
 xen/include/asm-arm/arm64/bitops.h |  3 ++-
 xen/include/asm-arm/cpuerrata.h    |  4 ++--
 xen/include/asm-arm/cpufeature.h   |  4 ++--
 xen/include/asm-arm/current.h      | 10 +++++++++-
 6 files changed, 19 insertions(+), 8 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

PATCH 1/6 xen/arm: fix get_cpu_info() when built with clang

Clang understands the GCCism in use here, but still complains that sp is unitialised. In such cases, resort to the older versions of this code, which directly read sp into the temporary variable.

Note that GCCism is still kept in default because other compilers (e.g. clang) may also define __GNUC__, so AFAIK there are no proper way to detect properly GCC.

This means that in the event Xen is ported to a new compiler, the code will need to be updated. But that likely not going to be the only place where Xen will need to be adapted...

This is based on the x86 counterpart.

---
Changes in v2:
- Update the commit message to explain the ordering in the code.
- Add Stefano's acked-by

---
 xen/include/asm-arm/current.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
xen/include/asm-arm/current.h +9 -1
index 1653e89d30..80503578cf 100644
@@ -28,8 +28,16 @@ struct cpu_info {
 
 static inline struct cpu_info *get_cpu_info(void)
 {
+#ifdef __clang__
+    unsigned long sp;
+
+    asm ("mov %0, sp" : "=r" (sp));
+#else
     register unsigned long sp asm ("sp");
-    return (struct cpu_info *)((sp & ~(STACK_SIZE - 1)) + STACK_SIZE - sizeof(struct cpu_info));
+#endif
+
+    return (struct cpu_info *)((sp & ~(STACK_SIZE - 1)) +
+                               STACK_SIZE - sizeof(struct cpu_info));
 }
 
 #define guest_cpu_user_regs() (&get_cpu_info()->guest_cpu_user_regs)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#2 lore raw

PATCH 2/6 xen/arm64: bitops: Match the register size with the value size in flsl

In reply to Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The instruction clz is expecting the two operands to be the same size (i.e 32-bit or 64-bit). As the flsl function is dealing with 64-bit value, we need to make the destination variable 64-bit as well.

While at it, add a newline before the return statement.

Note that the return type of flsl is not updated because the result will always be smaller than 64 and therefore fit in 32-bit.

---
Changes in v2:
- Update the commit message to explain why the return type is not modified

---
 xen/include/asm-arm/arm64/bitops.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/include/asm-arm/arm64/bitops.h +2 -1
index 6cc224ad13..d85a49bca4 100644
@@ -24,12 +24,13 @@ static /*__*/always_inline unsigned long __ffs(unsigned long word)
 
 static inline int flsl(unsigned long x)
 {
-        int ret;
+        uint64_t ret;
 
         if (__builtin_constant_p(x))
                return generic_flsl(x);
 
         asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
+
         return BITS_PER_LONG - ret;
 }
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 2/6
#3 lore raw

Re: [Xen-devel] [PATCH for-4.13 2/6] xen/arm64: bitops: Match the register size with the value size in flsl

Quoted 7 lines · Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The instruction clz is expecting the two operands to be the same size (i.e 32-bit or 64-bit). As the flsl function is dealing with 64-bit value, we need to make the destination variable 64-bit as well.

Quoted 6 lines

While at it, add a newline before the return statement.

Note that the return type of flsl is not updated because the result will always be smaller than 64 and therefore fit in 32-bit.

Quoted 30 lines

---
Changes in v2:
- Update the commit message to explain why the return type is not modified

---
 xen/include/asm-arm/arm64/bitops.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/include/asm-arm/arm64/bitops.h +2 -1
index 6cc224ad13..d85a49bca4 100644
@@ -24,12 +24,13 @@ static /*__*/always_inline unsigned long __ffs(unsigned long word)
 
 static inline int flsl(unsigned long x)
 {
-        int ret;
+        uint64_t ret;
 
         if (__builtin_constant_p(x))
                return generic_flsl(x);
 
         asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
+
         return BITS_PER_LONG - ret;
 }
 
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw

PATCH 3/6 xen/arm: cpuerrata: Match register size with value size in check_workaround_*

In reply to Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does not really improve the assembly generated. Instead, replace switch the variable to use register_t.

---
Changes in v2:
- Use !! per Stefano's request

---
 xen/include/asm-arm/cpuerrata.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-arm/cpuerrata.h +2 -2
index 55ddfda272..0896fe6e25 100644
@@ -14,14 +14,14 @@ static inline bool check_workaround_##erratum(void)             \
         return false;                                           \
     else                                                        \
     {                                                           \
-        bool ret;                                               \
+        register_t ret;                                         \
                                                                 \
         asm volatile (ALTERNATIVE("mov %0, #0",                 \
                                   "mov %0, #1",                 \
                                   feature)                      \
                       : "=r" (ret));                            \
                                                                 \
-        return unlikely(ret);                                   \
+        return unlikely(!!ret);                                 \
     }                                                           \
 }
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#5 lore raw

Re: [Xen-devel] [PATCH for-4.13 3/6] xen/arm: cpuerrata: Match register size with value size in check_workaround_*

Quoted 12 lines · Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does not really improve the assembly generated. Instead, replace switch the variable to use register_t.

Quoted 5 lines

---
Changes in v2:
- Use !! per Stefano's request

You are aware that unlikley(), deliberately, has an embedded !! ?

include/xen/compiler.h:11:#define unlikely(x)   __builtin_expect(!!(x),0)

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw

Re: [Xen-devel] [PATCH for-4.13 3/6] xen/arm: cpuerrata: Match register size with value size in check_workaround_*

Hi Andrew,

Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does not really improve the assembly generated. Instead, replace switch the variable to use register_t.

Quoted 7 lines
Quoted 5 lines

---
Changes in v2:
- Use !! per Stefano's request

You are aware that unlikley(), deliberately, has an embedded !! ?

I forgot it, sorry about that :/. Stefano are you happy if I revert to v1?

Quoted 5 lines

include/xen/compiler.h:11:#define unlikely(x)   __builtin_expect(!!(x),0)

~Andrew

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#7 lore raw

Re: [Xen-devel] [PATCH for-4.13 3/6] xen/arm: cpuerrata: Match register size with value size in check_workaround_*

Quoted 18 lines · Julien Grall

Hi Andrew,

Quoted 15 lines · Andrew Cooper
Quoted 14 lines · Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does not really improve the assembly generated. Instead, replace switch the variable to use register_t.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

---
Changes in v2:
- Use !! per Stefano's request

You are aware that unlikley(), deliberately, has an embedded !! ?

I forgot it, sorry about that :/. Stefano are you happy if I revert to v1?

I forgot about that too. Yes, that's fine and add my acked-by.

Quoted 4 lines
Quoted 4 lines

include/xen/compiler.h:11:#define unlikely(x)   __builtin_expect(!!(x),0)

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#8 lore raw

PATCH 4/6 xen/arm: cpufeature: Match register size with value size in cpus_have_const_cap

In reply to Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does no really improve the assembly generated. Instead, replace switch the variable to use register_t.

---
Changes in v2:
- Use !! per Stefano's request

---
 xen/include/asm-arm/cpufeature.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-arm/cpufeature.h +2 -2
index c2c8f3417c..4c5ff6e8ac 100644
@@ -67,14 +67,14 @@ static inline bool cpus_have_cap(unsigned int num)
 
 /* System capability check for constant cap */
 #define cpus_have_const_cap(num) ({                 \
-        bool __ret;                                 \
+        register_t __ret;                           \
                                                     \
         asm volatile (ALTERNATIVE("mov %0, #0",     \
                                   "mov %0, #1",     \
                                   num)              \
                       : "=r" (__ret));              \
                                                     \
-        unlikely(__ret);                            \
+        unlikely(!!__ret);                          \
         })
 
 static inline void cpus_set_cap(unsigned int num)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 4/6
#9 lore raw

Re: [Xen-devel] [PATCH for-4.13 4/6] xen/arm: cpufeature: Match register size with value size in cpus_have_const_cap

Quoted 7 lines · Julien Grall

Clang is pickier than GCC for the register size in asm statement. It expects the register size to match the value size.

The asm statement expects a 32-bit (resp. 64-bit) value on Arm32 (resp. Arm64) whereas the value is a boolean (Clang consider to be 32-bit).

Quoted 6 lines

It would be possible to impose 32-bit register for both architecture but this require the code to use __OP32. However, it does no really improve the assembly generated. Instead, replace switch the variable to use register_t.

With or without !! given that it's part of unlikely.

Quoted 31 lines

---
Changes in v2:
- Use !! per Stefano's request

---
 xen/include/asm-arm/cpufeature.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-arm/cpufeature.h +2 -2
index c2c8f3417c..4c5ff6e8ac 100644
@@ -67,14 +67,14 @@ static inline bool cpus_have_cap(unsigned int num)
 
 /* System capability check for constant cap */
 #define cpus_have_const_cap(num) ({                 \
-        bool __ret;                                 \
+        register_t __ret;                           \
                                                     \
         asm volatile (ALTERNATIVE("mov %0, #0",     \
                                   "mov %0, #1",     \
                                   num)              \
                       : "=r" (__ret));              \
                                                     \
-        unlikely(__ret);                            \
+        unlikely(!!__ret);                          \
         })
 
 static inline void cpus_set_cap(unsigned int num)
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#10 lore raw

PATCH 5/6 xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused

In reply to Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

---
Changes in v2:
- Update the prototype to match style of other functions holding on build assertions.

---
 xen/arch/arm/mm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/mm.c +2 -1
index 9e0fdc39f9..be23acfe26 100644
@@ -190,7 +190,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 void __init __maybe_unused build_assertions(void)
+{
     /* 2MB aligned regions */
     BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
     BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 5/6
#11 lore raw

Re: [Xen-devel] [PATCH for-4.13 5/6] xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused

Quoted 8 lines · Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

I'd like something like "Note that the function is now marked as __init" to the commit message, but in any case:

Quoted 25 lines

---
Changes in v2:
- Update the prototype to match style of other functions holding on build assertions.

---
 xen/arch/arm/mm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/mm.c +2 -1
index 9e0fdc39f9..be23acfe26 100644
@@ -190,7 +190,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 void __init __maybe_unused build_assertions(void)
+{
     /* 2MB aligned regions */
     BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
     BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#12 lore raw

Re: [Xen-devel] [PATCH for-4.13 5/6] xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused

Quoted 4 lines · Stefano Stabellini
Quoted 3 lines · Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

Quoted 8 lines
Quoted 5 lines

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

I'd like something like "Note that the function is now marked as __init" to the commit message, but in any case:

This is already implied with "update it to match prototype of similar functions".

42sh> grep "build_assertions"

Quoted 29 lines
Quoted 25 lines

---
Changes in v2:
- Update the prototype to match style of other functions holding on build assertions.

---
  xen/arch/arm/mm.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/mm.c +2 -1
index 9e0fdc39f9..be23acfe26 100644
@@ -190,7 +190,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 void __init __maybe_unused build_assertions(void)
+{
      /* 2MB aligned regions */
      BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
      BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
Signature · 1 line
2.11.0
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#13 lore raw

PATCH 6/6 xen/arm: traps: Mark check_stack_alignment_constraints as unused

In reply to Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

---
Changes in v2:
- Update the prototype to match style of other functions holding on build assertions.

---
 xen/arch/arm/traps.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/traps.c +2 -1
index a3b961bd06..a3deb59372 100644
@@ -54,7 +54,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 void __init __maybe_unused build_assertions(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);
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 6/6
#14 lore raw

Re: [Xen-devel] [PATCH for-4.13 6/6] xen/arm: traps: Mark check_stack_alignment_constraints as unused

Quoted 8 lines · Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

Same small note about build_assertions becoming __init.

Quoted 25 lines

---
Changes in v2:
- Update the prototype to match style of other functions holding on build assertions.

---
 xen/arch/arm/traps.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/arm/traps.c +2 -1
index a3b961bd06..a3deb59372 100644
@@ -54,7 +54,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 void __init __maybe_unused build_assertions(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);
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#15 lore raw

Re: [Xen-devel] [PATCH for-4.13 6/6] xen/arm: traps: Mark check_stack_alignment_constraints as unused

Hi Stefano,

Quoted 11 lines · Stefano Stabellini
Quoted 8 lines · Julien Grall

Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar functions (see build_assertions). This helps to understand that the sole purpose of the function is to hold BUILD_BUG_ON().

Same small note about build_assertions becoming __init.

Similar to the previous version this is already implied by "update it to match prototype of similar functions".

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#16 lore raw
In reply to Julien Grall
Quoted 10 lines · Julien Grall

Hi all,

After this series, I am able to build Xen on Arm64 with clang 7.0. There are still some issues when building Xen on Arm32 and also using lld.

Cross-compilation is left outside for now, but this is still a good start for clang (and armclang).

Cheers,

Quoted 9 lines

Julien Grall (6):
xen/arm: fix get_cpu_info() when built with clang xen/arm64: bitops: Match the register size with the value size in flsl xen/arm: cpuerrata: Match register size with value size in
check_workaround_*
xen/arm: cpufeature: Match register size with value size in
cpus_have_const_cap
xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused xen/arm: traps: Mark check_stack_alignment_constraints as unused

For the series:

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#17 lore raw
In reply to Julien Grall

Hi Julien

Just to confirm - with this series, we are able to run xen master (4.13-unstable) on R-Car H3:
* built using clang
* built using clang-based arm compiler (with further modifications
needed for armlink)

Note we didn't perform full testing, just start xen on its own.

-- Artem

Quoted 24 lines · Julien Grall

Hi all,

After this series, I am able to build Xen on Arm64 with clang 7.0. There
are still some issues when building Xen on Arm32 and also using lld.

Cross-compilation is left outside for now, but this is still a good start
for clang (and armclang).

Cheers,

Julien Grall (6):
xen/arm: fix get_cpu_info() when built with clang xen/arm64: bitops: Match the register size with the value size in
flsl
xen/arm: cpuerrata: Match register size with value size in
check_workaround_*
xen/arm: cpufeature: Match register size with value size in
cpus_have_const_cap
xen/arm: mm: Mark check_memory_layout_alignment_constraints as
unused
xen/arm: traps: Mark check_stack_alignment_constraints as unused

Quoted 9 lines
 xen/arch/arm/mm.c                  |  3 ++-
 xen/arch/arm/traps.c               |  3 ++-
 xen/include/asm-arm/arm64/bitops.h |  3 ++-
 xen/include/asm-arm/cpuerrata.h    |  4 ++--
 xen/include/asm-arm/cpufeature.h   |  4 ++--
 xen/include/asm-arm/current.h      | 10 +++++++++-
 6 files changed, 19 insertions(+), 8 deletions(-)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel