]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Add elf_get_u32() helper
authorLucas De Marchi <demarchi@kernel.org>
Thu, 23 Apr 2026 19:43:10 +0000 (14:43 -0500)
committerLucas De Marchi <demarchi@kernel.org>
Sat, 20 Jun 2026 16:09:52 +0000 (11:09 -0500)
commit0da79e0ab322298e2af0bd754b5970f2fd474dce
tree57f053b52d7b55f77344af76445c0ab515bc531b
parentd67420c692ab1c3d4cc10e755e6ee5ad9fc551ec
libkmod: Add elf_get_u32() helper

Shortcut to the size.

Keep this wrapper inline even after the previous de-inlining change:
it is a tiny typed helper around elf_get_uint() that avoids repeating
the uint32_t size at call sites, while the larger helpers can still be
left to the compiler.

Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/432
libkmod/libkmod-elf.c