*/
static int depmod_module_is_higher_priority(const struct depmod *depmod,
const struct mod *mod, size_t baselen,
- size_t namelen, size_t modnamelen,
- const char *newpath)
+ size_t modnamelen, const char *newpath)
{
const struct cfg *cfg = depmod->cfg;
const struct cfg_override *ov;
if (mod == NULL)
goto add;
- if (depmod_module_is_higher_priority(depmod, mod, baselen, namelen, modnamelen,
- path)) {
+ if (depmod_module_is_higher_priority(depmod, mod, baselen, modnamelen, path)) {
DBG("Ignored lower priority: %s, higher: %s\n", path, mod->path);
return 0;
}
*list = l;
}
-static int depmod_report_one_cycle(struct depmod *depmod, struct vertex *vertex,
- struct kmod_list **roots, struct hash *loop_set)
+static int depmod_report_one_cycle(struct vertex *vertex, struct kmod_list **roots,
+ struct hash *loop_set)
{
const char sep[] = " -> ";
size_t sz;
return rc;
}
-static int depmod_report_cycles_from_root(struct depmod *depmod, struct mod *root_mod,
- struct kmod_list **roots, void **stack,
- size_t stack_size, struct hash *loop_set)
+static int depmod_report_cycles_from_root(struct mod *root_mod, struct kmod_list **roots,
+ void **stack, size_t stack_size,
+ struct hash *loop_set)
{
struct kmod_list *free_list = NULL; /* struct vertex */
struct kmod_list *l;
*/
if (m->visited && m == root->mod) {
int rc;
- rc = depmod_report_one_cycle(depmod, vertex, roots, loop_set);
+ rc = depmod_report_one_cycle(vertex, roots, loop_set);
if (rc != 0) {
ret = rc;
goto out;
root = roots->data;
l = kmod_list_remove(roots);
roots = l;
- err = depmod_report_cycles_from_root(depmod, root, &roots, stack, n_r,
- loop_set);
+ err = depmod_report_cycles_from_root(root, &roots, stack, n_r, loop_set);
if (err < 0)
goto out_hash;
}