Skip to content

Commit cba9ff3

Browse files
xinli-intelIngo Molnar
authored andcommitted
x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline properly
Change array_index_mask_nospec() to __always_inline because "inline" is broken as https://www.kernel.org/doc/local/inline.html. Fixes: 6786137 ("x86/fred: FRED entry/exit and dispatch code") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Xin Li (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 208d8c7 commit cba9ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/barrier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* Returns:
3434
* 0 - (index < size)
3535
*/
36-
static inline unsigned long array_index_mask_nospec(unsigned long index,
36+
static __always_inline unsigned long array_index_mask_nospec(unsigned long index,
3737
unsigned long size)
3838
{
3939
unsigned long mask;

0 commit comments

Comments
 (0)