* [PATCH v1 1/1] x86/fred: Fix a build warning with allmodconfig
@ 2024-02-02 9:02 Xin Li (Intel)
2024-02-02 9:10 ` [tip: x86/fred] x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline properly tip-bot2 for Xin Li (Intel)
0 siblings, 1 reply; 2+ messages in thread
From: Xin Li (Intel) @ 2024-02-02 9:02 UTC (permalink / raw)
To: linux-kernel; +Cc: tglx, mingo, bp, dave.hansen, x86, hpa, sfr
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>
Link: https://lore.kernel.org/lkml/20240201111453.0ee3beff@canb.auug.org.au/
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
---
arch/x86/include/asm/barrier.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/barrier.h b/arch/x86/include/asm/barrier.h
index 0216f63a366b..fe1e7e3cc844 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;
base-commit: 208d8c79fd0f155bce1b23d8d78926653f7603b7
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* [tip: x86/fred] x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline properly
2024-02-02 9:02 [PATCH v1 1/1] x86/fred: Fix a build warning with allmodconfig Xin Li (Intel)
@ 2024-02-02 9:10 ` tip-bot2 for Xin Li (Intel)
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Xin Li (Intel) @ 2024-02-02 9:10 UTC (permalink / raw)
To: linux-tip-commits
Cc: Stephen Rothwell, Xin Li (Intel), Ingo Molnar, x86, linux-kernel
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) <xin@zytor.com>
AuthorDate: Fri, 02 Feb 2024 01:02:24 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
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")
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/barrier.h b/arch/x86/include/asm/barrier.h
index 0216f63..fe1e7e3 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-02 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 9:02 [PATCH v1 1/1] x86/fred: Fix a build warning with allmodconfig Xin Li (Intel)
2024-02-02 9:10 ` [tip: x86/fred] x86/fred: Fix a build warning with allmodconfig due to 'inline' failing to inline properly tip-bot2 for Xin Li (Intel)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®