Thread (17 messages) 17 messages, 6 authors, 2026-01-19

Re: [PATCH] compiler_types: Introduce inline_for_performance

From: Florian Westphal <fw@strlen.de>
Date: 2026-01-18 15:32:08
Also in: lkml

Eric Dumazet [off-list ref] wrote:
-#ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
-static __always_inline
-#else
-static inline
-#endif
+static inline_for_performance
..
-#ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
-static __always_inline
-#else
-static inline
-#endif
+static inline_for_performance
..
+#ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
+#define inline_for_performance __always_inline
+#else
+#define inline_for_performance
+#endif
Should that read

#else
+#define inline_for_performance inline

instead?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help