]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vsnprintf: inline skip_atoi() again
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Dec 2024 19:37:07 +0000 (11:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Dec 2024 19:18:35 +0000 (11:18 -0800)
commitf372b2256acbfbbf703cfdfae3d02c5a6c0e1679
treebb64152bcbb2216e9b2605bfea16e77063fdfac3
parent614d13462daef9bf6ac735744b5835a18cbfd19c
vsnprintf: inline skip_atoi() again

At some point skip_atoi() had been marked 'noinline_for_stack', but it
turns out that this is now a pessimization, and not inlining it actually
results in a stack frame in format decoding due to the call and thus
hurts stack usage rather than helping.

With the simplistic atoi function inlined, the format decoding now needs
no frame at all.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c