]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: Fix build warning on kernel 6.15
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Jul 2025 16:42:41 +0000 (11:42 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Jul 2025 16:42:41 +0000 (11:42 -0500)
commit3f8ec4d85922c5a59b53e043c4b6f01bed16eb1d
tree626b567bc6c28728cd53801bbe16d050555c7ace
parentd449664485fec740cfda8e3acad01d3e9354ad4d
testsuite: Fix build warning on kernel 6.15

The module description is now required, otherwise a warning is emitted
by modpost:

WARNING: modpost: missing MODULE_DESCRIPTION() in mod-loop-k.o

Fix all of them with:

sed -i '/MODULE_LICENSE("LGPL");/a MODULE_DESCRIPTION("dummy test module");' testsuite/module-playground/mod-*.c
sed -i '/MODULE_LICENSE("GPL");/a MODULE_DESCRIPTION("dummy test module");' testsuite/module-playground/mod-simple.c

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
23 files changed:
testsuite/module-playground/mod-fake-cciss.c
testsuite/module-playground/mod-fake-hpsa.c
testsuite/module-playground/mod-fake-scsi-mod.c
testsuite/module-playground/mod-foo-a.c
testsuite/module-playground/mod-foo-b.c
testsuite/module-playground/mod-foo-c.c
testsuite/module-playground/mod-foo.c
testsuite/module-playground/mod-loop-a.c
testsuite/module-playground/mod-loop-b.c
testsuite/module-playground/mod-loop-c.c
testsuite/module-playground/mod-loop-d.c
testsuite/module-playground/mod-loop-e.c
testsuite/module-playground/mod-loop-f.c
testsuite/module-playground/mod-loop-g.c
testsuite/module-playground/mod-loop-h.c
testsuite/module-playground/mod-loop-i.c
testsuite/module-playground/mod-loop-j.c
testsuite/module-playground/mod-loop-k.c
testsuite/module-playground/mod-simple.c
testsuite/module-playground/mod-softdep-a.c
testsuite/module-playground/mod-softdep-b.c
testsuite/module-playground/mod-weakdep.c
testsuite/rootfs-pristine/test-modinfo/correct-description.txt