]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: use right offset for module name
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 21 Jun 2012 14:30:56 +0000 (11:30 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 21 Jun 2012 14:30:56 +0000 (11:30 -0300)
commitfca5b9bcd4c57abb74eed3f766d5c58a7b827e71
treea624df0d787907e54c832e1af23ac561fc8270dd
parent62081c0f68905b22f375156d4532fd37fa5c8d33
testsuite: use right offset for module name

We need to cope with the case in which a 32 bits machine is opening a 64
bits kernel module and vice-versa. The offset in `struct module' are
different and do not depend on the architecture we are running, but
rather on the architecture they were created for.

This fixes `make check' in 32 bits machines (since we are shipping 64
bits modules for testing)
testsuite/init_module.c
testsuite/stripped-module.h