aboutsummaryrefslogtreecommitdiff
path: root/modutils/depmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/depmod.c')
-rw-r--r--modutils/depmod.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c
index 318e7cdc7..bb42bbefe 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -32,10 +32,11 @@
32 * for each depends, look through our list of full paths and emit if found 32 * for each depends, look through our list of full paths and emit if found
33 */ 33 */
34 34
35static int FAST_FUNC parse_module(const char *fname, struct stat *sb UNUSED_PARAM, 35static int FAST_FUNC parse_module(struct recursive_state *state,
36 void *data, int depth UNUSED_PARAM) 36 const char *fname,
37 struct stat *sb UNUSED_PARAM)
37{ 38{
38 module_db *modules = data; 39 module_db *modules = state->userData;
39 char *image, *ptr; 40 char *image, *ptr;
40 module_entry *e; 41 module_entry *e;
41 42
@@ -201,11 +202,12 @@ int depmod_main(int argc UNUSED_PARAM, char **argv)
201 memset(&modules, 0, sizeof(modules)); 202 memset(&modules, 0, sizeof(modules));
202 if (*argv) { 203 if (*argv) {
203 do { 204 do {
204 parse_module(*argv, /*sb (unused):*/ NULL, &modules, 0); 205 recursive_action(*argv, 0 /* no ACTION_RECURSE! */,
206 parse_module, NULL, &modules);
205 } while (*++argv); 207 } while (*++argv);
206 } else { 208 } else {
207 recursive_action(".", ACTION_RECURSE, 209 recursive_action(".", ACTION_RECURSE,
208 parse_module, NULL, &modules, 0); 210 parse_module, NULL, &modules);
209 } 211 }
210 212
211 /* Generate dependency and alias files */ 213 /* Generate dependency and alias files */