Re: [PATCH 07/30] mm/rmap: elide unnecessary static inline's in interval_tree.c
Pedro Falcato <[email protected]> Tue, 30 Jun 2026 17:22:34 +0100
| Newsgroups | org.kernel.vger.linux-sgx,dev.linux.lists.damon,dev.linux.lists.iommu,dev.linux.lists.nvdimm,org.freedesktop.lists.dri-devel,org.kernel.vger.kvm,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-parisc,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-tegra,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jun 29, 2026 at 01:23:18PM +0100, Lorenzo Stoakes wrote: > It's not necessary to declare these functions static inline as they are > contained within a single compilation unit. FWIW I don't think it's technically strictly equivalent (I have a vague memory of inline lightly suggesting inlining a function to GCC, because of compat reasons). Anyway, doesn't really matter, practically any static function gets inlined with -O2 anyway. > > This makes the anonymous interval tree code consistent with the newly > updated file-backed interval tree code. > > No functional change intended. > > Signed-off-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Pedro Falcato <[email protected]> -- Pedro