]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: remove internal kmod_list iterators
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 8 Sep 2024 09:41:16 +0000 (10:41 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 13 Sep 2024 16:50:38 +0000 (11:50 -0500)
commitaac871a6172f8d0c24ccee29ffe4dc87af17fef7
treef04971c2f52a3b160030248e768fbd4e60ca6f39
parentc12b083629e6c03362acb4c2b9aea7768e463763
libkmod: remove internal kmod_list iterators

These were introduced to workaround since the compiler cannot properly
optimise things, since the symbols have external linkage.

These days this is not so much an issue. For example comparing a gcc 14
build, with -O2 shows 24 bytes growth with this reverted.

Although in practise anyone looking for extreme optimisations - be that
speed or size - should be using LTO and/or PGO.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/117
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-internal.h