Re: [PATCH] compiler_types: Introduce inline_for_performance

From
Eric Dumazet <hidden>
Date
2026-01-18 15:40:11
Also in
lkml
Reply to
Florian Westphal, 2026-01-18
On Sun, Jan 18, 2026 at 4:32 PM Florian Westphal [off-list ref] wrote:
Eric Dumazet [off-list ref] wrote:
quoted
-#ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
-static __always_inline
-#else
-static inline
-#endif
+static inline_for_performance
..
quoted
-#ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
-static __always_inline
-#else
-static inline
-#endif
+static inline_for_performance
..
quoted
+#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?
Damn, of course !
Thread (18 messages) 18 messages, 7 authors, last reply 2026-07-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help