diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2019-10-04 12:28:43 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-10-04 16:37:33 +0200 |
commit | b4fd5a0a9295d87da629c72378a7f4967a277030 (patch) | |
tree | af454e0b4a48d597480cdda245aef45206717dc3 /arch/s390/include/asm/atomic_ops.h | |
parent | s390/mm: fix -Wunused-but-set-variable warnings (diff) | |
download | linux-dev-b4fd5a0a9295d87da629c72378a7f4967a277030.tar.xz linux-dev-b4fd5a0a9295d87da629c72378a7f4967a277030.zip |
s390/atomic,bitops: mark function(s) __always_inline
Always inline asm inlines with variable operands for "i" constraints,
since they won't compile if the compiler would decide to not inline
them.
Reported-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/atomic_ops.h')
-rw-r--r-- | arch/s390/include/asm/atomic_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
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" \ |