From: Xin Li (Intel) Date: Fri, 2 Feb 2024 09:02:24 +0000 (-0800) Subject: x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline... X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cba9ff33451162a6aa9b1424b32503354d7ef20e;p=linux.git 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 Signed-off-by: Xin Li (Intel) Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240202090225.322544-1-xin@zytor.com --- diff --git a/arch/x86/include/asm/barrier.h b/arch/x86/include/asm/barrier.h index 0216f63a366b5..fe1e7e3cc844a 100644 --- a/arch/x86/include/asm/barrier.h +++ b/arch/x86/include/asm/barrier.h @@ -33,7 +33,7 @@ * Returns: * 0 - (index < size) */ -static inline unsigned long array_index_mask_nospec(unsigned long index, +static __always_inline unsigned long array_index_mask_nospec(unsigned long index, unsigned long size) { unsigned long mask;