x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline...
authorXin Li (Intel) <xin@zytor.com>
Fri, 2 Feb 2024 09:02:24 +0000 (01:02 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 2 Feb 2024 09:05:55 +0000 (10:05 +0100)
commitcba9ff33451162a6aa9b1424b32503354d7ef20e
tree4e13ff2d22f6603a829a3b909c9f4b246e17bb9c
parent208d8c79fd0f155bce1b23d8d78926653f7603b7
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: 6786137bf8fd ("x86/fred: FRED entry/exit and dispatch code")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240202090225.322544-1-xin@zytor.com
arch/x86/include/asm/barrier.h