Skip to contentSkip to conversation

x86/fred: Fix a build warning with allmodconfig

PATCH Applied Xin Li (Intel) 2 participants 2 messages Feb 2, 2024 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/fred: Fix a build warning with allmodconfig

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")
---
 arch/x86/include/asm/barrier.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/barrier.h +1 -1
index 0216f63a366b..fe1e7e3cc844 100644
@@ -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;

base-commit: 208d8c79fd0f155bce1b23d8d78926653f7603b7

Signature · 1 line
2.43.0
merge bot Applied
#1 lore raw

[tip: x86/fred] x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline properly

The following commit has been merged into the x86/fred branch of tip:

The following commit has been merged into the x86/fred branch of tip:

Commit-ID:     cba9ff33451162a6aa9b1424b32503354d7ef20e
Gitweb:        https://git.kernel.org/tip/cba9ff33451162a6aa9b1424b32503354d7ef20e
Author:        Xin Li (Intel) <[email protected]>
AuthorDate:    Fri, 02 Feb 2024 01:02:24 -08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 02 Feb 2024 10:05:55 +01:00

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")
---
 arch/x86/include/asm/barrier.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/barrier.h +1 -1
index 0216f63..fe1e7e3 100644
@@ -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;