~registry/kmod/master

  • 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>
Filename Latest Rev Last Changed Committer Comment Size
..
libkmod 2 12 years ago Lucas De Marchi Rename libabc to libkmod Diff
m4 1 12 years ago Lucas De Marchi Import skeleton from libabc Diff
man 439 12 years ago Lucas De Marchi rename doc dir to man Diff
shared 919 10 years ago Lucas De Marchi Move macro.h to shared directory It's not really Diff
shell-completion 815 11 years ago Lucas De Marchi shell-completion: Add initial completion for kmod Diff
testsuite 495 12 years ago Lucas De Marchi testsuite: add skeleton Diff
tools 163 12 years ago Lucas De Marchi Merge branch 'use-mmap' Conflicts: libkmod/libkm Diff
.gitignore 1328 5 months ago Lucas De Marchi build: Ignore directories commonly used for out-of 324 bytes Diff Download File
File autogen.sh 1316 8 months ago Lucas De Marchi Drop python bindings Python bindings are not well 1.7 KB Diff Download File
CODING-STYLE 971 9 years ago Lucas De Marchi CODING-STYLE: add include order 2.3 KB Diff Download File
configure.ac 1326 7 months ago Lucas De Marchi Install kmod.pc in ${datadir}/pkgconfig The data 11.3 KB Diff Download File
COPYING 928 10 years ago Lucas De Marchi Clarify what licences apply where This doesn't ch 25.8 KB Diff Download File
Makefile.am 1326 7 months ago Lucas De Marchi Install kmod.pc in ${datadir}/pkgconfig The data 13.5 KB Diff Download File
NEWS 1324 7 months ago Lucas De Marchi kmod 32 31.4 KB Diff Download File
README.md 1316 8 months ago Lucas De Marchi Drop python bindings Python bindings are not well 3.6 KB Diff Download File
TODO 1142 6 years ago Lucas De Marchi libkmod-module: check for NULL before accessing po 2.1 KB Diff Download File