[PATCH v2 3/4] Provide the always inline version of some functions
Peter Zijlstra
peterz at infradead.org
Sun Nov 9 03:31:52 PST 2025
On Sun, Nov 09, 2025 at 01:23:45AM +0800, Xie Yuanbin wrote:
> On critical hot code paths, inline functions can optimize performance.
> However, for current compilers, there is no way to request them to inline
> at a specific calling point of a function.
>
> Add a always inline version to some functions, so that they can be chosen
> when called in hot paths.
There isn't a single function in the entire kernel with an _ainline
suffix, while there are a ton of _inline suffixed functions.
On top of that, this function was already marked inline, and your
compiler just chose to not inline them for raisins. Just make the thing
__always_inline and forget, dont make thing extra ugly for no reason.
More information about the linux-riscv
mailing list