~registry/kmod/master

Viewing all changes in revision 1336.

  • Committer: Lucas De Marchi
  • Author(s): Emil Velikov
  • Date: 2024-04-30 17:33:52 UTC
  • Revision ID: git-v1:0c127388070b8d696bb52c783985d4d10f74a5bc
libkmod: always detect the module compression

Currently, when built w/o given compression we'll incorrectly report a
"compression_none".

As we reach do_finit_module(), we'll naively assume that the kernel can
handle the compressed module, yet omit the MODULE_INIT_COMPRESSED_FILE
flag.

As result the kernel will barf at us, do_finit_module will fail with non
-ENOSYS and we won't end in the do_init_module codepath (which will also
fail).

In other words: with this change, you can build kmod without zstd, xz
and zlib support and the kernel will load the modules, assuming it
supports the format \o/

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: