[PATCH] nvme-pci: Make nvme_pci_npages_prp() __always_inline
Christoph Hellwig
hch at lst.de
Tue May 6 21:47:54 PDT 2025
On Tue, May 06, 2025 at 08:35:40PM -0700, Kees Cook wrote:
> The only reason nvme_pci_npages_prp() could be used as a compile-time
> known result in BUILD_BUG_ON() is because the compiler was always choosing
> to inline the function. Under special circumstances (sanitizer coverage
> functions disabled for __init functions on ARCH=um), the compiler decided
> to stop inlining it:
Can we place just fix um to still force inlining inline functions instead
of needing these workarounds?
More information about the Linux-nvme
mailing list