]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
depmod: do not create a hole in struct depmod
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Oct 2012 04:32:48 +0000 (02:32 -0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Oct 2012 04:33:14 +0000 (02:33 -0200)
tools/depmod.c

index ff19d6e012f4dd7bbd4bbb2dea999c732cc0cc9c..fcdb880f765060993e945e9e64cc1393fbd7285a 100644 (file)
@@ -995,6 +995,7 @@ struct mod {
        struct kmod_module *kmod;
        const char *path;
        const char *relpath; /* path relative to '$ROOT/lib/modules/$VER/' */
+       char *uncrelpath; /* same as relpath but ending in .ko */
        struct array deps; /* struct symbol */
        size_t baselen; /* points to start of basename/filename */
        size_t modnamelen;
@@ -1003,7 +1004,6 @@ struct mod {
        uint16_t idx; /* index in depmod->modules.array */
        uint16_t users; /* how many modules depend on this one */
        uint8_t dep_loop : 1;
-       char *uncrelpath; /* same as relpath but ending in .ko */
        char modname[];
 };