Skip to contentSkip to conversation

modpost: Changes parameter name to avoid shadowing.

PATCH In review Leonardo Brás 1 participant 1 message Oct 23, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/5 modpost: Changes parameter name to avoid shadowing.

Changes the parameter name to avoid shadowing a variable.

---
 scripts/mod/modpost.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/mod/modpost.c +2 -2
index 0d998c54564d..368fe42340df 100644
@@ -2228,13 +2228,13 @@ static int add_versions(struct buffer *b, struct module *mod)
 }
 
 static void add_depends(struct buffer *b, struct module *mod,
-			struct module *modules)
+			struct module *module_list)
 {
 	struct symbol *s;
 	struct module *m;
 	int first = 1;
 
-	for (m = modules; m; m = m->next)
+	for (m = module_list; m; m = m->next)
 		m->seen = is_vmlinux(m->name);
 
 	buf_printf(b, "\n");
Signature · 1 line
2.19.1