BugLink:
https://bugs.launchpad.net/bugs/1846143I get the following error building zfs for s390 with debug
symbols enabled:
./arch/s390/include/asm/atomic_ops.h:46:2: error: impossible constraint in ‘asm’
Similar problems have been fixed in the past by using
__always_inline to force inlining, and trying the same here fixes
the build.
Signed-off-by: Seth Forshee <
[hidden email]>
---
arch/s390/include/asm/atomic_ops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/include/asm/atomic_ops.h b/arch/s390/include/asm/atomic_ops.h
index d3f09526ee19..61467b9eecc7 100644
--- a/arch/s390/include/asm/atomic_ops.h
+++ b/arch/s390/include/asm/atomic_ops.h
@@ -41,7 +41,7 @@ __ATOMIC_OPS(__atomic64_xor, long, "laxg")
#undef __ATOMIC_OP
#define __ATOMIC_CONST_OP(op_name, op_type, op_string, op_barrier) \
-static inline void op_name(op_type val, op_type *ptr) \
+static __always_inline void op_name(op_type val, op_type *ptr) \
{ \
asm volatile( \
op_string " %[ptr],%[val]\n" \
--
2.20.1
--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team