Skip to content

kmod: Paper cuts - dead code removal, don't SED manually

Emil Velikov linux-modules 1 version Applied

Status from this message: Applied all the patches, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4libkmod: remove unused kmod_module_get_builtinlibkmod/libkmod-internal.h libkmod/libkmod-module.c+0 -440 replies
2/4libkmod: annotate kmod_builtin_iter API as staticlibkmod/libkmod-builtin.c libkmod/libkmod-internal.h+4 -90 replies
3/4shared: annotate local API as staticshared/util.c shared/util.h+3 -60 replies
4/4configure: manage libkmod.pc.in and version.py.in via AC_CONFIG_FILESMakefile.am configure.ac+2 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] kmod: Paper cuts - dead code removal, don't SED manually

Greetings everyone,

Here's another, final, round of paper cuts while browsing through the project.

Note that despite the enabled linker garbage collector, the first few cleanup patches result in detectable improvement in the final binaries.

The last patch, removes the open-coded replacement and by doing so fixes a genuine bug - albeit one that is uncommon to hit.

As always, feel free to pick any bits that seem suitable.

Thanks
Emil

Emil Velikov (4):
libkmod: remove unused kmod_module_get_builtin
libkmod: annotate kmod_builtin_iter API as static
shared: annotate local API as static
configure: manage libkmod.pc.in and version.py.in via AC_CONFIG_FILES

 Makefile.am                | 25 ----------------------
 configure.ac               |  2 ++
 libkmod/libkmod-builtin.c  |  8 +++----
 libkmod/libkmod-internal.h |  6 ------
 libkmod/libkmod-module.c   | 43 --------------------------------------
 shared/util.c              |  6 +++---
 shared/util.h              |  3 ---
 7 files changed, 9 insertions(+), 84 deletions(-)
Signature · 1 line
2.39.2