]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/modprobe: accept module name with --show-modversions
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 19 May 2025 20:08:26 +0000 (21:08 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 13 Jun 2025 18:52:41 +0000 (13:52 -0500)
commitfc0edb4ac1e381325db81f9f30c8fdbda5caf819
treea5f4406c2c3402fe609114dba4b8c94bc32dea7f
parent07f1abb9656125e354825c67c785c96403615a07
tools/modprobe: accept module name with --show-modversions

Use the newly introduced helper module_new_from_any(), so we accept both
files as well as modules. This means you can now do:
 - modprobe --show-modversions drm-vram-helper, alongside the existing
 - modprobe --show-modversions /full/path/to/the/module/drm_vram_helper.ko

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/353
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/modprobe.c