Skip to content

Commit c5c0a26

Browse files
author
Vasily Gorbik
committed
s390/barrier: Make array_index_mask_nospec() __always_inline
Mark array_index_mask_nospec() as __always_inline to guarantee the mitigation is emitted inline regardless of compiler inlining decisions. Fixes: e2dd833 ("s390: add optimized array_index_mask_nospec") Cc: [email protected] Reviewed-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent c369299 commit c5c0a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/s390/include/asm/barrier.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ do { \
6262
* @size: number of elements in array
6363
*/
6464
#define array_index_mask_nospec array_index_mask_nospec
65-
static inline unsigned long array_index_mask_nospec(unsigned long index,
66-
unsigned long size)
65+
static __always_inline unsigned long array_index_mask_nospec(unsigned long index,
66+
unsigned long size)
6767
{
6868
unsigned long mask;
6969

0 commit comments

Comments
 (0)