On 23.09.2025 10:39, Sergii Dmytruk wrote: > On Tue, Jul 08, 2025 at 06:00:13PM +0200, Jan Beulich wrote: >> These inline functions are pretty large. Why do they need to be inline ones? > > The functions are run at entry points, one of which is in 32-bit early > code and another in 64-bit EFI. Having this in the header is simpler > than compiling the code twice. Despite having many lines, it's just a > sequence of checks, so it didn't seem like too much for a header.
Otoh especially the being compiled as 32-bit and as 64-bit can end up being a pitfall - one wouldn't necessarily expect this when editing a header file. A dual-built C file would be different in this regard, imo. Jan
